Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
b1a532ae
"...resnet50_tensorflow.git" did not exist on "17a4f67fa180297fc9394082ecde1a2870cc5561"
Unverified
Commit
b1a532ae
authored
Jul 27, 2022
by
J-shang
Committed by
GitHub
Jul 27, 2022
Browse files
[Common] change version utils log level (#5023)
parent
84350632
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
nni/common/version.py
nni/common/version.py
+3
-3
No files found.
nni/common/version.py
View file @
b1a532ae
...
@@ -25,21 +25,21 @@ try:
...
@@ -25,21 +25,21 @@ try:
import
torch
import
torch
TORCH_VERSION
=
_minor_version_tuple
(
torch
.
__version__
)
TORCH_VERSION
=
_minor_version_tuple
(
torch
.
__version__
)
except
ImportError
:
except
ImportError
:
logging
.
getLogger
(
__name__
).
info
(
"PyTorch is not installed."
)
logging
.
getLogger
(
__name__
).
debug
(
"PyTorch is not installed."
)
TORCH_VERSION
=
None
TORCH_VERSION
=
None
try
:
try
:
import
pytorch_lightning
import
pytorch_lightning
PYTORCH_LIGHTNING_VERSION
=
_minor_version_tuple
(
pytorch_lightning
.
__version__
)
PYTORCH_LIGHTNING_VERSION
=
_minor_version_tuple
(
pytorch_lightning
.
__version__
)
except
ImportError
:
except
ImportError
:
logging
.
getLogger
(
__name__
).
info
(
"PyTorch Lightning is not installed."
)
logging
.
getLogger
(
__name__
).
debug
(
"PyTorch Lightning is not installed."
)
PYTORCH_LIGHTNING_VERSION
=
None
PYTORCH_LIGHTNING_VERSION
=
None
try
:
try
:
import
tensorflow
import
tensorflow
TENSORFLOW_VERSION
=
_minor_version_tuple
(
tensorflow
.
__version__
)
TENSORFLOW_VERSION
=
_minor_version_tuple
(
tensorflow
.
__version__
)
except
ImportError
:
except
ImportError
:
logging
.
getLogger
(
__name__
).
info
(
"Tensorflow is not installed."
)
logging
.
getLogger
(
__name__
).
debug
(
"Tensorflow is not installed."
)
TENSORFLOW_VERSION
=
None
TENSORFLOW_VERSION
=
None
# Serialization version check are needed because they are prone to be inconsistent between versions
# Serialization version check are needed because they are prone to be inconsistent between versions
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment