mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 13:13:26 +08:00
Added reshape corrections
This commit is contained in:
parent
7a2b3ed471
commit
e75f1b071b
@ -306,7 +306,7 @@ bool hasAllOnes(const Mat &inputs, int startPos, int endPos)
|
|||||||
|
|
||||||
for (int i = startPos; i < endPos; i++)
|
for (int i = startPos; i < endPos; i++)
|
||||||
{
|
{
|
||||||
if (inputs.at<int>(i) != 1 || inputs.at<int>(i)!= -1)
|
if (inputs.at<int>(i) != 1 && inputs.at<int>(i) != -1)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -478,6 +478,11 @@ TEST_P(Test_TensorFlow_layers, reshape_nchw)
|
|||||||
runTensorFlowNet("reshape_nchw");
|
runTensorFlowNet("reshape_nchw");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST_P(Test_TensorFlow_layers, reshape_conv)
|
||||||
|
{
|
||||||
|
runTensorFlowNet("reshape_conv");
|
||||||
|
}
|
||||||
|
|
||||||
TEST_P(Test_TensorFlow_layers, leaky_relu)
|
TEST_P(Test_TensorFlow_layers, leaky_relu)
|
||||||
{
|
{
|
||||||
#if defined(INF_ENGINE_RELEASE) && INF_ENGINE_VER_MAJOR_EQ(2018050000)
|
#if defined(INF_ENGINE_RELEASE) && INF_ENGINE_VER_MAJOR_EQ(2018050000)
|
||||||
|
Loading…
Reference in New Issue
Block a user