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
651688b2
Unverified
Commit
651688b2
authored
Jun 06, 2022
by
Yuge Zhang
Committed by
GitHub
Jun 06, 2022
Browse files
Replace `logging.info` with `logger.info` (#4913)
parent
0064e40e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
nni/common/version.py
nni/common/version.py
+3
-3
nni/experiment/experiment.py
nni/experiment/experiment.py
+1
-1
No files found.
nni/common/version.py
View file @
651688b2
...
@@ -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
.
info
(
"PyTorch is not installed."
)
logging
.
getLogger
(
__name__
).
info
(
"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
.
info
(
"PyTorch Lightning is not installed."
)
logging
.
getLogger
(
__name__
).
info
(
"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
.
info
(
"Tensorflow is not installed."
)
logging
.
getLogger
(
__name__
).
info
(
"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
...
...
nni/experiment/experiment.py
View file @
651688b2
...
@@ -425,7 +425,7 @@ class Experiment:
...
@@ -425,7 +425,7 @@ class Experiment:
experiment_profile
=
self
.
get_experiment_profile
()
experiment_profile
=
self
.
get_experiment_profile
()
experiment_profile
[
'params'
][
key
]
=
value
experiment_profile
[
'params'
][
key
]
=
value
rest
.
put
(
self
.
port
,
api
,
experiment_profile
,
self
.
url_prefix
)
rest
.
put
(
self
.
port
,
api
,
experiment_profile
,
self
.
url_prefix
)
logg
ing
.
info
(
'Successfully update %s.'
,
key
)
_
logg
er
.
info
(
'Successfully update %s.'
,
key
)
def
update_trial_concurrency
(
self
,
value
:
int
):
def
update_trial_concurrency
(
self
,
value
:
int
):
"""
"""
...
...
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