Update scan benchmarks to have a range of 16K-128K iterations. As of https://github...
authorA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 22 May 2018 03:27:53 +0000 (20:27 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 22 May 2018 03:31:04 +0000 (20:31 -0700)
commitc0bf28ecc311759ac80e12515ad931b077aae635
tree276c42c2ba9f72ab3db706268e2eb9e913ca079c
parent065436d71e867f7622c0567cb6aaf78b3e69d2a0
Update scan benchmarks to have a range of 16K-128K iterations. As of https://github.com/tensorflow/tensorflow/commit/5802096c267c805f6a69798aac10aefef759bb9f, TensorFlow Eager no longer exhibits quadratic behavior. The benchmark is still ~5x slower in eager mode vs. graph mode, and maybe slightly worse than linear:

n     Graph Time (s)  Eager Time (s)      Ratio
-----------------------------------------------
 16K            0.35             1.8        5.1
 32K            0.64             3.6        5.6
 64K            1.1              7.2        6.5
128K            2.4             14.8        6.2

PiperOrigin-RevId: 197505257
tensorflow/contrib/eager/python/examples/scan/scan_graph_test.py
tensorflow/contrib/eager/python/examples/scan/scan_test.py