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
22c185c5
Unverified
Commit
22c185c5
authored
Apr 22, 2021
by
SparkSnail
Committed by
GitHub
Apr 22, 2021
Browse files
Hotfix config.platform error (#3566)
parent
fcc6c78c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
nni/tools/nnictl/launcher.py
nni/tools/nnictl/launcher.py
+2
-0
No files found.
nni/tools/nnictl/launcher.py
View file @
22c185c5
...
...
@@ -203,6 +203,8 @@ def set_experiment_v1(experiment_config, mode, port, config_file_name):
request_data
[
'maxTrialNum'
]
=
experiment_config
[
'maxTrialNum'
]
request_data
[
'searchSpace'
]
=
experiment_config
.
get
(
'searchSpace'
)
request_data
[
'trainingServicePlatform'
]
=
experiment_config
.
get
(
'trainingServicePlatform'
)
# hack for hotfix, fix config.trainingService undefined error, need refactor
request_data
[
'trainingService'
]
=
{
'platform'
:
experiment_config
.
get
(
'trainingServicePlatform'
)}
if
experiment_config
.
get
(
'description'
):
request_data
[
'description'
]
=
experiment_config
[
'description'
]
if
experiment_config
.
get
(
'multiPhase'
):
...
...
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