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
b83e3b3b
Unverified
Commit
b83e3b3b
authored
Jun 24, 2019
by
chicm-ms
Committed by
GitHub
Jun 24, 2019
Browse files
fix trial keeper (#1199)
parent
97829ccd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
tools/nni_trial_tool/trial_keeper.py
tools/nni_trial_tool/trial_keeper.py
+3
-1
No files found.
tools/nni_trial_tool/trial_keeper.py
View file @
b83e3b3b
...
@@ -51,7 +51,7 @@ def get_hdfs_client(args):
...
@@ -51,7 +51,7 @@ def get_hdfs_client(args):
return
_hdfs_client
return
_hdfs_client
# backward compatibility
# backward compatibility
hdfs_host
=
None
hdfs_host
=
None
hdfs_output_dir
=
None
if
args
.
hdfs_host
:
if
args
.
hdfs_host
:
hdfs_host
=
args
.
hdfs_host
hdfs_host
=
args
.
hdfs_host
elif
args
.
pai_hdfs_host
:
elif
args
.
pai_hdfs_host
:
...
@@ -83,6 +83,8 @@ def main_loop(args):
...
@@ -83,6 +83,8 @@ def main_loop(args):
# redirect trial keeper's stdout and stderr to syslog
# redirect trial keeper's stdout and stderr to syslog
trial_syslogger_stdout
=
RemoteLogger
(
args
.
nnimanager_ip
,
args
.
nnimanager_port
,
'trial'
,
StdOutputType
.
Stdout
,
args
.
log_collection
)
trial_syslogger_stdout
=
RemoteLogger
(
args
.
nnimanager_ip
,
args
.
nnimanager_port
,
'trial'
,
StdOutputType
.
Stdout
,
args
.
log_collection
)
sys
.
stdout
=
sys
.
stderr
=
trial_keeper_syslogger
sys
.
stdout
=
sys
.
stderr
=
trial_keeper_syslogger
hdfs_output_dir
=
None
if
args
.
hdfs_output_dir
:
if
args
.
hdfs_output_dir
:
hdfs_output_dir
=
args
.
hdfs_output_dir
hdfs_output_dir
=
args
.
hdfs_output_dir
elif
args
.
pai_hdfs_output_dir
:
elif
args
.
pai_hdfs_output_dir
:
...
...
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