Benchmark for tf.scan in graph and eager modes. As of this writing, a simple tf.scan...
authorA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 9 May 2018 18:22:24 +0000 (11:22 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 9 May 2018 18:32:16 +0000 (11:32 -0700)
commita01d9f7dfb58c72ea78ed560c78f99e96223ea76
tree7db13477ce22bc3117e9c07059c8e4121789468f
parent37e48e870c9f431dd10fd838ba066c8d6c7bd9dd
Benchmark for tf.scan in graph and eager modes. As of this writing, a simple tf.scan sum is ~80x faster in graph mode (including graph building time) for 32,000 nodes. Additionally, tf.scan exhibits quadratic scaling in eager mode but linear in graph.

PiperOrigin-RevId: 196000512
tensorflow/contrib/eager/python/examples/scan/BUILD [new file with mode: 0644]
tensorflow/contrib/eager/python/examples/scan/scan_graph_test.py [new file with mode: 0644]
tensorflow/contrib/eager/python/examples/scan/scan_test.py [new file with mode: 0644]