Skip to content

Commit

Permalink
pass kwargs to torch.jit.load
Browse files Browse the repository at this point in the history
Signed-off-by: Jake Schmidt <jacob.schmidt@recursionpharma.com>
  • Loading branch information
Jake Schmidt committed Dec 14, 2021
1 parent 0dbd5c4 commit 987298f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlflow/pytorch/__init__.py
Expand Up @@ -635,7 +635,7 @@ def _load_model(path, **kwargs):
return torch.load(model_path, **kwargs)
except Exception:
# If fails, assume the model as a scripted model
return torch.jit.load(model_path)
return torch.jit.load(model_path, **kwargs)


def load_model(model_uri, dst_path=None, **kwargs):
Expand Down

0 comments on commit 987298f

Please sign in to comment.