Fixing the jenkins tests (#1299)

* trying to fix jenkins tests

* comment out more tests

* remove pytorch stuff

* use non-monotonic clock (monotonic not supported on python 2.7)

* whitespace
This commit is contained in:
Philipp Moritz
2017-12-07 17:03:58 -08:00
committed by Robert Nishihara
parent 35f7398666
commit 26125e1547
3 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -24,9 +24,9 @@ class TimerStat(RunningStat):
def __enter__(self):
assert self._start_time is None, "concurrent updates not supported"
self._start_time = time.monotonic()
self._start_time = time.time()
def __exit__(self, type, value, tb):
assert self._start_time is not None
self.push(time.monotonic() - self._start_time)
self.push(time.time() - self._start_time)
self._start_time = None