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
3e7483a8
Unverified
Commit
3e7483a8
authored
Apr 25, 2021
by
SparkSnail
Committed by
GitHub
Apr 25, 2021
Browse files
Fix v1 config resuem bug (#3576)
parent
a5efb4e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
nni/tools/nnictl/launcher.py
nni/tools/nnictl/launcher.py
+4
-4
No files found.
nni/tools/nnictl/launcher.py
View file @
3e7483a8
...
@@ -535,12 +535,12 @@ def manage_stopped_experiment(args, mode):
...
@@ -535,12 +535,12 @@ def manage_stopped_experiment(args, mode):
experiments_config
.
update_experiment
(
args
.
id
,
'port'
,
args
.
port
)
experiments_config
.
update_experiment
(
args
.
id
,
'port'
,
args
.
port
)
assert
'trainingService'
in
experiment_config
or
'trainingServicePlatform'
in
experiment_config
assert
'trainingService'
in
experiment_config
or
'trainingServicePlatform'
in
experiment_config
try
:
try
:
if
'trainingService'
in
experiment_config
:
if
'trainingServicePlatform'
in
experiment_config
:
experiment_config
[
'experimentWorkingDirectory'
]
=
experiments_dict
[
args
.
id
][
'logDir'
]
launch_experiment
(
args
,
experiment_config
,
mode
,
experiment_id
,
2
)
else
:
experiment_config
[
'logDir'
]
=
experiments_dict
[
args
.
id
][
'logDir'
]
experiment_config
[
'logDir'
]
=
experiments_dict
[
args
.
id
][
'logDir'
]
launch_experiment
(
args
,
experiment_config
,
mode
,
experiment_id
,
1
)
launch_experiment
(
args
,
experiment_config
,
mode
,
experiment_id
,
1
)
else
:
experiment_config
[
'experimentWorkingDirectory'
]
=
experiments_dict
[
args
.
id
][
'logDir'
]
launch_experiment
(
args
,
experiment_config
,
mode
,
experiment_id
,
2
)
except
Exception
as
exception
:
except
Exception
as
exception
:
restServerPid
=
Experiments
().
get_all_experiments
().
get
(
experiment_id
,
{}).
get
(
'pid'
)
restServerPid
=
Experiments
().
get_all_experiments
().
get
(
experiment_id
,
{}).
get
(
'pid'
)
if
restServerPid
:
if
restServerPid
:
...
...
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