Skip to content

Commit

Permalink
Don't wait for session.close() to finish when calculating benchmark t…
Browse files Browse the repository at this point in the history
…iming.

PiperOrigin-RevId: 206634868
  • Loading branch information
rjpower authored and tensorflower-gardener committed Jul 30, 2018
1 parent 53fcaa2 commit cfd9cc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tensorflow/python/kernel_tests/decode_jpeg_op_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ def _evalDecodeJpeg(self,
start_time = time.time()
for _ in xrange(num_iters):
sess.run(r)
return time.time() - start_time
end_time = time.time()
return end_time - start_time

def benchmarkDecodeJpegSmall(self):
"""Evaluate single DecodeImageOp for small size image."""
Expand Down

0 comments on commit cfd9cc4

Please sign in to comment.