Make tensor_util_test.py work with the C API enabled.
authorSkye Wanderman-Milne <skyewm@google.com>
Wed, 24 Jan 2018 23:23:12 +0000 (15:23 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 24 Jan 2018 23:27:09 +0000 (15:27 -0800)
commit1df1544aeb8a6311c98a0d9ee9b6946e035fdbeb
treec7361879c1c285791fcf61101f6c96299ac61749
parentbf83571eb14d57ce32320bf8f49134458659a441
Make tensor_util_test.py work with the C API enabled.

Some of the shape inference error messages have changed. We also need
to wrap an InvalidArgumentError as a ValueError for backwards compat.

PiperOrigin-RevId: 183150857
tensorflow/contrib/framework/python/framework/tensor_util_test.py
tensorflow/python/framework/ops.py