Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Merge v0.2 branch back to master for PR #273 (#400)
Browse files Browse the repository at this point in the history
* fix bugs due to ts.tailstream (#273)
  • Loading branch information
yds05 authored Nov 27, 2018
1 parent 101b02f commit b2b4f45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sdk/pynni/nni/platform/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import json
import time
import json_tricks
import subprocess

from ..common import init_logger, env_args

Expand Down Expand Up @@ -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']

0 comments on commit b2b4f45

Please sign in to comment.