Skip to content

Commit 0b3b096

Browse files
committed
Merge pull request #972 from sovrasov:dnn_torch_python_fix
2 parents 68e19d5 + 7c7c284 commit 0b3b096

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/dnn/src/torch/torch_importer.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,12 @@ Ptr<Importer> createTorchImporter(const String &filename, bool isBinary)
972972
return Ptr<Importer>();
973973
}
974974

975+
Blob readTorchBlob(const String &filename, bool isBinary)
976+
{
977+
CV_Error(Error::StsNotImplemented, "Torch importer is disabled in current build");
978+
return Blob();
979+
}
980+
975981
#endif //defined(ENABLE_TORCH_IMPORTER) && ENABLE_TORCH_IMPORTER
976982
}
977983
}

0 commit comments

Comments
 (0)