We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77a016b commit b15d767Copy full SHA for b15d767
src/backends/torch/torchlib.cc
@@ -196,7 +196,8 @@ namespace dd
196
197
void TorchModule::native_model_load(const TorchModel &tmodel)
198
{
199
- if (!tmodel._native.empty())
+ if (!tmodel._native.empty()
200
+ && _native != nullptr) //_native has to be instanciated before loading
201
202
_logger->info("loading " + tmodel._native);
203
try
0 commit comments