Repository navigation
DNN backends registry - #13332
Merged
Merged
DNN backends registry#13332
Conversation
dkurt
reviewed
Nov 30, 2018
| } | ||
| INSTANTIATE_TEST_CASE_P(/**/, Reproducibility_SqueezeNet_v1_1, availableDnnTargets()); | ||
| INSTANTIATE_TEST_CASE_P(/**/, Reproducibility_SqueezeNet_v1_1, | ||
| testing::ValuesIn(getAvailableTargets(DNN_BACKEND_OPENCV))); |
Member
There was a problem hiding this comment.
It enables FP16 tests so we can use common thresholds:
double l1 = (target == DNN_TARGET_OPENCL_FP16 || target == DNN_TARGET_MYRIAD) ? 4e-3 : 1e-5;
double lInf = (target == DNN_TARGET_OPENCL_FP16 || target == DNN_TARGET_MYRIAD) ? 2e-2 : 1e-4;It should fix the following tests:
Reproducibility_SqueezeNet_v1_1.Accuracy/1, where GetParam() = OCL_FP16
Reproducibility_GoogLeNet.Batching/1, where GetParam() = OCL_FP16
However the following ones doesn't pass:
Reproducibility_GoogLeNet.IntermediateBlobs/1, where GetParam() = OCL_FP16
Reproducibility_GoogLeNet.SeveralCalls/1, where GetParam() = OCL_FP16
I think it's OK if we skip them for now for OCL_FP16 target.
mshabunin
force-pushed
the
dnn-backends
branch
from
December 5, 2018 10:17
265bcf4 to
ddedbc5
Compare
mshabunin
force-pushed
the
dnn-backends
branch
2 times, most recently
from
December 5, 2018 10:26
72f3724 to
729a14f
Compare
mshabunin
force-pushed
the
dnn-backends
branch
2 times, most recently
from
December 5, 2018 10:46
1cb99bd to
974d080
Compare
mshabunin
force-pushed
the
dnn-backends
branch
from
December 5, 2018 11:00
974d080 to
1403671
Compare
dkurt
reviewed
Dec 5, 2018
| } | ||
|
|
||
| INSTANTIATE_TEST_CASE_P(/*nothing*/, DNNTestNetwork, dnnBackendsAndTargets(true, true, false)); | ||
| INSTANTIATE_TEST_CASE_P(/*nothing*/, DNNTestNetwork, dnnBackendsAndTargets()); |
Member
There was a problem hiding this comment.
I think we need to keep false for withCpuOCV
dkurt
reviewed
Dec 5, 2018
| testing::internal::ParamGenerator< tuple<Backend, Target> > dnnBackendsAndTargets( | ||
| bool withInferenceEngine = true, | ||
| bool withHalide = false, | ||
| bool withCpuOCV = true |
Member
There was a problem hiding this comment.
withCpuOCV is ignored here. Some tests use default CPU implementation as reference so we don't compare it with itself.
Member
|
I will prepare fixup commit for that. |
This was referenced Dec 5, 2018
Merged
SavyaSanchi-Sharma
pushed a commit
to SavyaSanchi-Sharma/opencv
that referenced
this pull request
Jul 30, 2026
DNN backends registry (opencv#13332) * Added dnn backends registry * dnn: process DLIE/FPGA target
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pullrequest changes
adds basic registry for DNN backends and targets