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
c2c04f6c
Unverified
Commit
c2c04f6c
authored
Apr 22, 2021
by
J-shang
Committed by
GitHub
Apr 22, 2021
Browse files
Fix log dir (#3554)
parent
5ea110af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
nni/experiment/launcher.py
nni/experiment/launcher.py
+4
-3
No files found.
nni/experiment/launcher.py
View file @
c2c04f6c
...
...
@@ -115,7 +115,8 @@ def _start_rest_server(config: ExperimentConfig, port: int, debug: bool, experim
'mode'
:
ts
,
'experiment_id'
:
experiment_id
,
'start_mode'
:
mode
,
'log_level'
:
'debug'
if
debug
else
'info'
,
'log_dir'
:
config
.
experiment_working_directory
,
'log_level'
:
'debug'
if
debug
else
'info'
}
if
pipe_path
is
not
None
:
args
[
'dispatcher_pipe'
]
=
pipe_path
...
...
@@ -166,10 +167,10 @@ def get_stopped_experiment_config(exp_id: str, mode: str) -> None:
experiments_dict
=
experiments_config
.
get_all_experiments
()
experiment_metadata
=
experiments_dict
.
get
(
exp_id
)
if
experiment_metadata
is
None
:
logg
ing
.
error
(
'Id %s not exist!'
,
exp_id
)
_
logg
er
.
error
(
'Id %s not exist!'
,
exp_id
)
return
if
experiment_metadata
[
'status'
]
!=
'STOPPED'
:
logg
ing
.
error
(
'Only stopped experiments can be %sed!'
,
mode
)
_
logg
er
.
error
(
'Only stopped experiments can be %sed!'
,
mode
)
return
experiment_config
=
Config
(
exp_id
,
experiment_metadata
[
'logDir'
]).
get_config
()
config
=
ExperimentConfig
(
**
experiment_config
)
...
...
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