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
b2b4f458
Unverified
Commit
b2b4f458
authored
Nov 27, 2018
by
fishyds
Committed by
GitHub
Nov 27, 2018
Browse files
Merge v0.2 branch back to master for PR #273 (#400)
* fix bugs due to ts.tailstream (#273)
parent
101b02ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/sdk/pynni/nni/platform/local.py
src/sdk/pynni/nni/platform/local.py
+2
-0
No files found.
src/sdk/pynni/nni/platform/local.py
View file @
b2b4f458
...
...
@@ -22,6 +22,7 @@ import os
import
json
import
time
import
json_tricks
import
subprocess
from
..common
import
init_logger
,
env_args
...
...
@@ -77,6 +78,7 @@ def send_metric(string):
assert
len
(
data
)
<
1000000
,
'Metric too long'
_metric_file
.
write
(
b
'ME%06d%b'
%
(
len
(
data
),
data
))
_metric_file
.
flush
()
subprocess
.
run
([
'touch'
,
_metric_file
.
name
],
check
=
True
)
def
get_sequence_id
():
return
os
.
environ
[
'NNI_TRIAL_SEQ_ID'
]
\ No newline at end of file
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