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

Commit

Permalink
fix bugs due to ts.tailstream (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
Crysple authored and yds05 committed Oct 26, 2018
1 parent c47f8a4 commit 609ee9a
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 @@ -21,6 +21,7 @@

import json
import os
import subprocess

from ..common import init_logger

Expand All @@ -45,3 +46,4 @@ 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)

0 comments on commit 609ee9a

Please sign in to comment.