diff --git a/modules/dnn/src/net_impl_backend.cpp b/modules/dnn/src/net_impl_backend.cpp index 47536c0ebf..0f176d03d3 100644 --- a/modules/dnn/src/net_impl_backend.cpp +++ b/modules/dnn/src/net_impl_backend.cpp @@ -347,7 +347,10 @@ void Net::Impl::setPreferableTarget(int targetId) if (mainGraph) { - CV_LOG_WARNING(NULL, "Targets are not supported by the new graph engine for now"); + if (targetId != DNN_TARGET_CPU) + { + CV_LOG_WARNING(NULL, "Targets are not supported by the new graph engine for now"); + } return; } if (netWasQuantized && targetId != DNN_TARGET_CPU &&