Skip to content

Commit

Permalink
remove: torchvision dependency when log torch model. fixed #4381 (#5153)
Browse files Browse the repository at this point in the history
* remove: torchvision dependency when log torch model. fixed #4381

Signed-off-by: zhouweipeng <zhouweipeng@lattebank.com>

* docs: rm torchvision

Signed-off-by: zhouweipeng <zhouweipeng@lattebank.com>

Co-authored-by: zhouweipeng <zhouweipeng@lattebank.com>
  • Loading branch information
Secbone and zhouweipeng committed Dec 20, 2021
1 parent 5fa575e commit 549575d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mlflow/pytorch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ def get_default_pip_requirements():
_get_pinned_requirement,
[
"torch",
"torchvision",
# We include CloudPickle in the default environment because
# it's required by the default pickle module used by `save_model()`
# and `log_model()`: `mlflow.pytorch.pickle_module`.
Expand Down Expand Up @@ -103,7 +102,6 @@ def get_default_conda_env():
'channels': ['conda-forge'],
'dependencies': ['python=3.7.5',
{'pip': ['torch==1.5.1',
'torchvision==0.6.1',
'mlflow',
'cloudpickle==1.6.0']}]}
"""
Expand Down

0 comments on commit 549575d

Please sign in to comment.