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
44f54866
"src/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "aa7b76b50895fe52675877619fea508d07d06993"
Commit
44f54866
authored
Apr 16, 2019
by
Lee
Committed by
xuehui
Apr 16, 2019
Browse files
Fix IndexError bug (#978)
Catch IndexError
parent
54118c34
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/sdk/pynni/nni/hyperopt_tuner/hyperopt_tuner.py
src/sdk/pynni/nni/hyperopt_tuner/hyperopt_tuner.py
+1
-1
No files found.
src/sdk/pynni/nni/hyperopt_tuner/hyperopt_tuner.py
View file @
44f54866
...
...
@@ -347,7 +347,7 @@ class HyperoptTuner(Tuner):
for
key
in
vals
:
try
:
parameter
[
key
]
=
vals
[
key
][
0
].
item
()
except
KeyError
:
except
(
KeyError
,
IndexError
)
:
parameter
[
key
]
=
None
# remove '_index' from json2parameter and save params-id
...
...
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