|
|
|
@ -49,7 +49,7 @@ |
|
|
|
|
|
|
|
|
|
namespace cv { |
|
|
|
|
namespace dnn { |
|
|
|
|
|
|
|
|
|
#if defined(ENABLE_TORCH_IMPORTER) && ENABLE_TORCH_IMPORTER |
|
|
|
|
#include "THDiskFile.h" |
|
|
|
|
|
|
|
|
|
#ifdef NDEBUG |
|
|
|
@ -964,6 +964,14 @@ Blob readTorchBlob(const String &filename, bool isBinary) |
|
|
|
|
|
|
|
|
|
return importer->tensors.begin()->second; |
|
|
|
|
} |
|
|
|
|
#else |
|
|
|
|
|
|
|
|
|
Ptr<Importer> createTorchImporter(const String &filename, bool isBinary) |
|
|
|
|
{ |
|
|
|
|
CV_Error(Error::StsNotImplemented, "Torch importer is disabled in current build"); |
|
|
|
|
return Ptr<Importer>(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#endif //defined(ENABLE_TORCH_IMPORTER) && ENABLE_TORCH_IMPORTER
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|