"src/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "aa7b76b50895fe52675877619fea508d07d06993"
Commit 44f54866 authored by Lee's avatar Lee Committed by xuehui
Browse files

Fix IndexError bug (#978)

Catch IndexError
parent 54118c34
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment