mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
dnn(test): skip failed tests on Vulkan backend
This commit is contained in:
@@ -842,6 +842,12 @@ TEST_P(Test_two_inputs, basic)
|
||||
Backend backendId = get<0>(get<2>(GetParam()));
|
||||
Target targetId = get<1>(get<2>(GetParam()));
|
||||
|
||||
int type1 = get<0>(GetParam());
|
||||
int type2 = get<1>(GetParam());
|
||||
|
||||
if (backendId == DNN_BACKEND_VKCOM && !(type1 == CV_32F && type2 == CV_32F))
|
||||
applyTestTag(CV_TEST_TAG_DNN_SKIP_VULKAN);
|
||||
|
||||
Net net;
|
||||
LayerParams lp;
|
||||
lp.type = "Eltwise";
|
||||
@@ -851,8 +857,8 @@ TEST_P(Test_two_inputs, basic)
|
||||
net.connect(0, 1, eltwiseId, 1); // connect to a second input
|
||||
|
||||
int inpSize[] = {1, 2, 3, 4};
|
||||
Mat firstInp(4, &inpSize[0], get<0>(GetParam()));
|
||||
Mat secondInp(4, &inpSize[0], get<1>(GetParam()));
|
||||
Mat firstInp(4, &inpSize[0], type1);
|
||||
Mat secondInp(4, &inpSize[0], type2);
|
||||
randu(firstInp, 0, 100);
|
||||
randu(secondInp, 0, 100);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user