Add bitcast for equal bitwidth casts.
authorJacques Pienaar <jpienaar@google.com>
Thu, 29 Mar 2018 16:42:05 +0000 (09:42 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 29 Mar 2018 16:46:58 +0000 (09:46 -0700)
commitae3d20f9aef78554f0d0f5eec13982e9802a45d2
treef7d2b40d7c8629fd110c58e4fad9c0a7461e1d91
parenta98351b9c6c691b6873ef5a5c3e8e48bf42bd14c
Add bitcast for equal bitwidth casts.

Map bitcasts to XLA bitcast HLO if the bitwidth of the elementtype is the same.

PiperOrigin-RevId: 190942398
tensorflow/compiler/tests/unary_ops_test.py
tensorflow/compiler/tf2xla/kernels/cast_op.cc