File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -981,6 +981,7 @@ def main():
981
981
'typing_extensions' ,
982
982
'sympy' ,
983
983
'networkx' ,
984
+ 'packaging'
984
985
]
985
986
986
987
extras_require = {
Original file line number Diff line number Diff line change 1
1
import tensorboard
2
- from distutils . version import LooseVersion
2
+ from packaging import version # type: ignore[import]
3
3
4
- if not hasattr (tensorboard , "__version__" ) or LooseVersion (
4
+ if not hasattr (tensorboard , "__version__" ) or version . parse (
5
5
tensorboard .__version__
6
- ) < LooseVersion ("1.15" ):
6
+ ) < version . Version ("1.15" ):
7
7
raise ImportError ("TensorBoard logging requires TensorBoard version 1.15 or above" )
8
8
9
- del LooseVersion
9
+ del version
10
10
del tensorboard
11
11
12
12
from .writer import FileWriter , SummaryWriter # noqa: F401
You can’t perform that action at this time.
0 commit comments