Add `AppendFloat16ArrayToTensorProto` to acclerate `tf.constant` for float16 (#19212)
authorYan Facai (颜发才) <facai.yan@gmail.com>
Tue, 15 May 2018 18:34:50 +0000 (02:34 +0800)
committerRasmus Munk Larsen <rmlarsen@google.com>
Tue, 15 May 2018 18:34:50 +0000 (11:34 -0700)
commit90fe7226a464983e72a0242d5a05e4acba309195
tree961e9362591c919c17da2b31c0c066b655c90e3d
parentc7e8ede453d7fcf7172d172a8386a514e879d380
Add `AppendFloat16ArrayToTensorProto` to acclerate `tf.constant` for float16 (#19212)

* PREP: add fast append for float16

* CLN: wrapper for float16

* CLN: replace append with extend method

* Revert "CLN: replace append with extend method"

This reverts commit 9958ba9bbf442e5b669e354b17b88c735719b366.
tensorflow/python/framework/fast_tensor_util.pyx
tensorflow/python/framework/tensor_util.py