diff --git a/modules/dnn/src/torch/torch_importer.cpp b/modules/dnn/src/torch/torch_importer.cpp index ba2da566f..9ff416c48 100644 --- a/modules/dnn/src/torch/torch_importer.cpp +++ b/modules/dnn/src/torch/torch_importer.cpp @@ -972,6 +972,12 @@ Ptr createTorchImporter(const String &filename, bool isBinary) return Ptr(); } +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 } }