Commit 96222f36 authored by Vladislav Sovrasov's avatar Vladislav Sovrasov

dnn: fix build without Torch

parent 3f5b4655
......@@ -972,16 +972,16 @@ Mat readTorchBlob(const String &filename, bool isBinary)
}
#else
Ptr<Importer> createTorchImporter(const String &filename, bool isBinary)
Ptr<Importer> createTorchImporter(const String&, bool)
{
CV_Error(Error::StsNotImplemented, "Torch importer is disabled in current build");
return Ptr<Importer>();
}
Blob readTorchBlob(const String &filename, bool isBinary)
Mat readTorchBlob(const String&, bool)
{
CV_Error(Error::StsNotImplemented, "Torch importer is disabled in current build");
return Blob();
return Mat();
}
#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