summaryrefslogtreecommitdiff
path: root/modules/dnn/test/test_layers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/dnn/test/test_layers.cpp')
-rw-r--r--modules/dnn/test/test_layers.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/dnn/test/test_layers.cpp b/modules/dnn/test/test_layers.cpp
index 720447afb9..963206bd73 100644
--- a/modules/dnn/test/test_layers.cpp
+++ b/modules/dnn/test/test_layers.cpp
@@ -201,6 +201,13 @@ TEST(Layer_Test_Reshape, Accuracy)
testReshape(MatShape(inp, inp + 4), MatShape(out, out + 2), 0, -1,
MatShape(mask, mask + 2));
}
+ {
+ int inp[] = {1, 2, 3};
+ int out[] = {3, 1, 2};
+ int mask[] = {3, 1, 2};
+ testReshape(MatShape(inp, inp + 3), MatShape(out, out + 3), 0, -1,
+ MatShape(mask, mask + 3));
+ }
}
TEST(Layer_Test_BatchNorm, Accuracy)