mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Fix missing dependency in torch.utils.tensorboard (#115598)
Fixes #114591 Version package was removed in this pull request: #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: https://github.com/pytorch/pytorch/pull/115598 Approved by: https://github.com/malfet
This commit is contained in:
parent
1d5a9a1c1a
commit
bc0d8649a4
1 changed files with 1 additions and 1 deletions
|
|
@ -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__
|
||||
|
|
|
|||
Loading…
Reference in a new issue