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
946cb543
"src/include/Array.hpp" did not exist on "0a2657312ec62a65e92a36cebd7d3b2a3c0712e1"
Unverified
Commit
946cb543
authored
Jun 03, 2019
by
SparkSnail
Committed by
GitHub
Jun 03, 2019
Browse files
Fix nnictl command line (#1146)
parent
a8233663
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
tools/nni_cmd/nnictl.py
tools/nni_cmd/nnictl.py
+1
-1
tools/nni_cmd/nnictl_utils.py
tools/nni_cmd/nnictl_utils.py
+1
-1
No files found.
tools/nni_cmd/nnictl.py
View file @
946cb543
...
@@ -83,7 +83,7 @@ def parse_args():
...
@@ -83,7 +83,7 @@ def parse_args():
parser_updater_duration
.
add_argument
(
'--value'
,
'-v'
,
required
=
True
,
help
=
'the unit of time should in {
\'
s
\'
,
\'
m
\'
,
\'
h
\'
,
\'
d
\'
}'
)
parser_updater_duration
.
add_argument
(
'--value'
,
'-v'
,
required
=
True
,
help
=
'the unit of time should in {
\'
s
\'
,
\'
m
\'
,
\'
h
\'
,
\'
d
\'
}'
)
parser_updater_duration
.
set_defaults
(
func
=
update_duration
)
parser_updater_duration
.
set_defaults
(
func
=
update_duration
)
parser_updater_trialnum
=
parser_updater_subparsers
.
add_parser
(
'trialnum'
,
help
=
'update maxtrialnum'
)
parser_updater_trialnum
=
parser_updater_subparsers
.
add_parser
(
'trialnum'
,
help
=
'update maxtrialnum'
)
parser_updater_trialnum
.
add_argument
(
'
--
id'
,
'-i'
,
dest
=
'id
'
,
help
=
'the id of experiment'
)
parser_updater_trialnum
.
add_argument
(
'id'
,
nargs
=
'?
'
,
help
=
'the id of experiment'
)
parser_updater_trialnum
.
add_argument
(
'--value'
,
'-v'
,
required
=
True
)
parser_updater_trialnum
.
add_argument
(
'--value'
,
'-v'
,
required
=
True
)
parser_updater_trialnum
.
set_defaults
(
func
=
update_trialnum
)
parser_updater_trialnum
.
set_defaults
(
func
=
update_trialnum
)
...
...
tools/nni_cmd/nnictl_utils.py
View file @
946cb543
...
@@ -264,7 +264,7 @@ def trial_kill(args):
...
@@ -264,7 +264,7 @@ def trial_kill(args):
return
return
running
,
_
=
check_rest_server_quick
(
rest_port
)
running
,
_
=
check_rest_server_quick
(
rest_port
)
if
running
:
if
running
:
response
=
rest_delete
(
trial_job_id_url
(
rest_port
,
args
.
id
),
REST_TIME_OUT
)
response
=
rest_delete
(
trial_job_id_url
(
rest_port
,
args
.
trial_
id
),
REST_TIME_OUT
)
if
response
and
check_response
(
response
):
if
response
and
check_response
(
response
):
print
(
response
.
text
)
print
(
response
.
text
)
else
:
else
:
...
...
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