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
a801b5f8
Unverified
Commit
a801b5f8
authored
Apr 07, 2022
by
liuzhe-lz
Committed by
GitHub
Apr 07, 2022
Browse files
fix argparse (#4740)
parent
9c21e87e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
nni/tools/nnictl/legacy_launcher.py
nni/tools/nnictl/legacy_launcher.py
+1
-1
ts/nni_manager/common/globals/arguments.ts
ts/nni_manager/common/globals/arguments.ts
+1
-1
No files found.
nni/tools/nnictl/legacy_launcher.py
View file @
a801b5f8
...
...
@@ -69,7 +69,7 @@ def start_rest_server(port, platform, mode, experiment_id, foreground=False, log
else
:
node_command
=
os
.
path
.
join
(
entry_dir
,
'node'
)
cmds
=
[
node_command
,
'--max-old-space-size=4096'
,
entry_file
,
'--port'
,
str
(
port
),
'--mode'
,
platform
,
\
'--experiment
_
id'
,
experiment_id
]
'--experiment
-
id'
,
experiment_id
]
cmds
+=
[
'--action'
,
mode
]
if
log_dir
is
not
None
:
cmds
+=
[
'--experiments-directory'
,
log_dir
]
...
...
ts/nni_manager/common/globals/arguments.ts
View file @
a801b5f8
...
...
@@ -35,7 +35,7 @@ export interface NniManagerArgs {
}
export
function
parseArgs
(
rawArgs
:
string
[]):
NniManagerArgs
{
const
parser
=
yargs
(
rawArgs
).
options
(
yargsOptions
).
strict
().
fail
(
(
_msg
,
err
,
_yargs
)
=>
{
throw
err
;
}
);
const
parser
=
yargs
(
rawArgs
).
options
(
yargsOptions
).
strict
().
fail
(
false
);
const
parsedArgs
:
NniManagerArgs
=
parser
.
parseSync
();
// strip yargs leftovers
...
...
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