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
969c4c2f
Unverified
Commit
969c4c2f
authored
Jan 06, 2021
by
liuzhe-lz
Committed by
GitHub
Jan 06, 2021
Browse files
disable logging in nnictl (#3268)
parent
58820396
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
nni/tools/nnictl/nnictl.py
nni/tools/nnictl/nnictl.py
+3
-0
No files found.
nni/tools/nnictl/nnictl.py
View file @
969c4c2f
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
# Licensed under the MIT license.
# Licensed under the MIT license.
import
argparse
import
argparse
import
logging
import
os
import
os
import
pkg_resources
import
pkg_resources
from
colorama
import
init
from
colorama
import
init
...
@@ -32,6 +33,8 @@ def nni_info(*args):
...
@@ -32,6 +33,8 @@ def nni_info(*args):
print
(
'please run "nnictl {positional argument} --help" to see nnictl guidance'
)
print
(
'please run "nnictl {positional argument} --help" to see nnictl guidance'
)
def
parse_args
():
def
parse_args
():
logging
.
getLogger
().
setLevel
(
logging
.
ERROR
)
'''Definite the arguments users need to follow and input'''
'''Definite the arguments users need to follow and input'''
parser
=
argparse
.
ArgumentParser
(
prog
=
'nnictl'
,
description
=
'use nnictl command to control nni experiments'
)
parser
=
argparse
.
ArgumentParser
(
prog
=
'nnictl'
,
description
=
'use nnictl command to control nni experiments'
)
parser
.
add_argument
(
'--version'
,
'-v'
,
action
=
'store_true'
)
parser
.
add_argument
(
'--version'
,
'-v'
,
action
=
'store_true'
)
...
...
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