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
64ae3d73
"src/vscode:/vscode.git/clone" did not exist on "dabfa77fc68bdbcfc2d10cdd515605c053cf1ed0"
Unverified
Commit
64ae3d73
authored
Jun 08, 2022
by
liuzhe-lz
Committed by
GitHub
Jun 08, 2022
Browse files
Fix error message for incorrect tuner config (#4919)
parent
6022859e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
docs/source/conf.py
docs/source/conf.py
+1
-0
nni/experiment/config/experiment_config.py
nni/experiment/config/experiment_config.py
+9
-1
No files found.
docs/source/conf.py
View file @
64ae3d73
...
...
@@ -109,6 +109,7 @@ linkcheck_ignore = [
r
'https://www\.msra\.cn/'
,
# MSRA
r
'https://1drv\.ms/'
,
# OneDrive (shortcut)
r
'https://onedrive\.live\.com/'
,
# OneDrive
r
'https://www\.openml\.org/'
,
]
# Ignore all links located in release.rst
...
...
nni/experiment/config/experiment_config.py
View file @
64ae3d73
...
...
@@ -110,7 +110,15 @@ class ExperimentConfig(ConfigBase):
for
algo_type
in
[
'tuner'
,
'assessor'
,
'advisor'
]:
algo
=
getattr
(
self
,
algo_type
)
if
algo
is
not
None
and
algo
.
name
==
'_none_'
:
# TODO: need a more universal solution for similar problems
if
isinstance
(
algo
,
dict
):
# the base class should have converted it to `_AlgorithmConfig` if feasible
# it is a `dict` here means an exception was raised during the convertion attempt
# we do the convertion again to show user the error message
_AlgorithmConfig
(
**
algo
)
# pylint: disable=not-a-mapping
if
algo
is
not
None
and
algo
.
name
==
'_none_'
:
# type: ignore
setattr
(
self
,
algo_type
,
None
)
if
self
.
advisor
is
not
None
:
...
...
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