dnn(test): use checkMyriadTarget() in Test_Caffe_layers.Conv_Elu test

pull/11922/head
Alexander Alekhin 7 years ago
parent 0fd74fa177
commit 52b151dceb
  1. 6
      modules/dnn/test/test_layers.cpp

@ -352,6 +352,12 @@ TEST_P(Test_Caffe_layers, Reshape_Split_Slice)
TEST_P(Test_Caffe_layers, Conv_Elu)
{
if (backend == DNN_BACKEND_INFERENCE_ENGINE && target == DNN_TARGET_MYRIAD)
{
if (!checkMyriadTarget())
throw SkipTestException("Myriad is not available/disabled in OpenCV");
}
Net net = readNetFromTensorflow(_tf("layer_elu_model.pb"));
ASSERT_FALSE(net.empty());

Loading…
Cancel
Save