1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

fixed test

This commit is contained in:
Abhishek Gola
2026-07-01 15:45:05 +05:30
parent dd3f3f6d9d
commit 2089d7fdb1
+1 -13
View File
@@ -690,18 +690,6 @@ static void topK(const Mat& probs, std::vector<std::pair<int, float> >& result,
}
}
// Returns the CPU (OpenCV backend) and CUDA backend/target pairs for benchmarking.
static std::vector<tuple<Backend, Target> > resnet50BackendsAndTargets()
{
std::vector<tuple<Backend, Target> > targets;
targets.push_back(make_tuple(DNN_BACKEND_OPENCV, DNN_TARGET_CPU));
#ifdef HAVE_CUDA
for (auto target : getAvailableTargets(DNN_BACKEND_CUDA))
targets.push_back(make_tuple(DNN_BACKEND_CUDA, target));
#endif
return targets;
}
typedef testing::TestWithParam<tuple<Backend, Target> > Reproducibility_ResNet50_ONNX;
TEST_P(Reproducibility_ResNet50_ONNX, Accuracy)
{
@@ -754,7 +742,7 @@ TEST_P(Reproducibility_ResNet50_ONNX, Accuracy)
}
}
INSTANTIATE_TEST_CASE_P(/**/, Reproducibility_ResNet50_ONNX,
testing::ValuesIn(resnet50BackendsAndTargets()));
dnnBackendsAndTargets(false, false, true, false, true, false, false, false));
typedef testing::TestWithParam<Target> Reproducibility_ResNet50_QDQ_ONNX;
TEST_P(Reproducibility_ResNet50_QDQ_ONNX, Accuracy)