Skip to content

Commit

Permalink
Fix missing dependency in torch.utils.tensorboard (pytorch#115598)
Browse files Browse the repository at this point in the history
Fixes pytorch#114591

Version package was removed in this pull request: pytorch#114108 but is still used in `torch.utils.tensorboard` causing import errors. The fix removes the import and uses a simpler check.
Pull Request resolved: pytorch#115598
Approved by: https://github.com/malfet
  • Loading branch information
sachahu1 authored and dmenig committed Dec 21, 2023
1 parent 35e9f5c commit dbd51f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/utils/tensorboard/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import tensorboard
from packaging.version import Version
from torch._vendor.packaging.version import Version

if not hasattr(tensorboard, "__version__") or Version(
tensorboard.__version__
Expand Down

0 comments on commit dbd51f0

Please sign in to comment.