Commit 7c7c2848 authored by Vladislav Sovrasov's avatar Vladislav Sovrasov

Fix python bindings for dnn when Torch is disabled

parent 68e19d50
......@@ -972,6 +972,12 @@ Ptr<Importer> createTorchImporter(const String &filename, bool isBinary)
return Ptr<Importer>();
}
Blob readTorchBlob(const String &filename, bool isBinary)
{
CV_Error(Error::StsNotImplemented, "Torch importer is disabled in current build");
return Blob();
}
#endif //defined(ENABLE_TORCH_IMPORTER) && ENABLE_TORCH_IMPORTER
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment