mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 08:13:04 +04:00
Add Reshape layer tests
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -198,6 +198,7 @@ TEST_P(Test_TensorFlow_layers, reshape)
|
||||
{
|
||||
int targetId = GetParam();
|
||||
runTensorFlowNet("shift_reshape_no_reorder", targetId);
|
||||
runTensorFlowNet("reshape_no_reorder", targetId);
|
||||
runTensorFlowNet("reshape_reduce", targetId);
|
||||
runTensorFlowNet("flatten", targetId, true);
|
||||
runTensorFlowNet("unfused_flatten", targetId);
|
||||
|
||||
Reference in New Issue
Block a user