Fix python bindings for dnn when Torch is disabled

pull/972/head
Vladislav Sovrasov 8 years ago
parent 68e19d5097
commit 7c7c2848cf
  1. 6
      modules/dnn/src/torch/torch_importer.cpp

@ -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
}
}

Loading…
Cancel
Save