Merge pull request #972 from sovrasov:dnn_torch_python_fix

pull/977/head
Alexander Alekhin 8 years ago
commit 0b3b096fb2
  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