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
5f3c5ffd
Unverified
Commit
5f3c5ffd
authored
Jul 31, 2019
by
SparkSnail
Committed by
GitHub
Jul 31, 2019
Browse files
Merge pull request #196 from microsoft/master
merge master
parents
d4acd498
410ab1ca
Changes
22
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
tools/nni_cmd/launcher_utils.py
tools/nni_cmd/launcher_utils.py
+8
-0
tools/nni_cmd/nnictl_utils.py
tools/nni_cmd/nnictl_utils.py
+3
-3
No files found.
tools/nni_cmd/launcher_utils.py
View file @
5f3c5ffd
...
...
@@ -253,6 +253,14 @@ def validate_pai_trial_conifg(experiment_config):
experiment_config
[
'trial'
][
'shmMB'
]
>
experiment_config
[
'trial'
][
'memoryMB'
]:
print_error
(
'shmMB should be no more than memoryMB!'
)
exit
(
1
)
#backward compatibility
warning_information
=
'{0} is not supported in NNI anymore, please remove the field in config file!
\
please refer https://github.com/microsoft/nni/blob/master/docs/en_US/TrainingService/PaiMode.md#run-an-experiment
\
for the practices of how to get data and output model in trial code'
if
experiment_config
.
get
(
'trial'
).
get
(
'dataDir'
):
print_warning
(
warning_information
.
format
(
'dataDir'
))
if
experiment_config
.
get
(
'trial'
).
get
(
'outputDir'
):
print_warning
(
warning_information
.
format
(
'outputDir'
))
def
validate_all_content
(
experiment_config
,
config_path
):
'''Validate whether experiment_config is valid'''
...
...
tools/nni_cmd/nnictl_utils.py
View file @
5f3c5ffd
...
...
@@ -520,9 +520,9 @@ def platform_clean(args):
if
platform
not
in
[
'remote'
,
'pai'
]:
print_normal
(
'platform {0} not supported.'
.
format
(
platform
))
exit
(
0
)
update_experiment
()
experiment_config
=
Experiments
()
experiment_dict
=
experiment_config
.
get_all_experiments
()
update_experiment
()
id_list
=
list
(
experiment_dict
.
keys
())
dir_list
=
get_platform_dir
(
config_content
)
if
not
dir_list
:
...
...
@@ -553,12 +553,12 @@ def platform_clean(args):
def
experiment_list
(
args
):
'''get the information of all experiments'''
update_experiment
()
experiment_config
=
Experiments
()
experiment_dict
=
experiment_config
.
get_all_experiments
()
if
not
experiment_dict
:
print_normal
(
'Cannot find experiments.'
)
exit
(
1
)
update_experiment
()
experiment_id_list
=
[]
if
args
.
all
:
for
key
in
experiment_dict
.
keys
():
...
...
@@ -595,12 +595,12 @@ def get_time_interval(time1, time2):
def
show_experiment_info
():
'''show experiment information in monitor'''
update_experiment
()
experiment_config
=
Experiments
()
experiment_dict
=
experiment_config
.
get_all_experiments
()
if
not
experiment_dict
:
print
(
'There is no experiment running...'
)
exit
(
1
)
update_experiment
()
experiment_id_list
=
[]
for
key
in
experiment_dict
.
keys
():
if
experiment_dict
[
key
][
'status'
]
!=
'STOPPED'
:
...
...
Prev
1
2
Next
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