pytorch
38c32e19 - fix DeprecationWarning (#95545)

Commit
1 year ago
fix DeprecationWarning (#95545) This PR fixes 2 `DeprecationWarning` instances: ``` python3.8/site-packages/torch/utils/tensorboard/__init__.py:4 /home/stas/anaconda3/envs/py38-pt113/lib/python3.8/site-packages/torch/utils/tensorboard/__init__.py:4: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. if not hasattr(tensorboard, "__version__") or LooseVersion( python3.8/site-packages/torch/utils/tensorboard/__init__.py:6 /home/stas/anaconda3/envs/py38-pt113/lib/python3.8/site-packages/torch/utils/tensorboard/__init__.py:6: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. ) < LooseVersion("1.15"): ``` Pull Request resolved: https://github.com/pytorch/pytorch/pull/95545 Approved by: https://github.com/ezyang
Author
Committer
Parents
Loading