We were ValueOrDie()ing in one place, and TF_CHECK_OK()ing in another. Both should...
authorA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 21 Mar 2018 11:09:32 +0000 (04:09 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 21 Mar 2018 11:12:21 +0000 (04:12 -0700)
commite69000c347ddf023a3b1926d812881fd8c5a055b
tree13108c33f78294891fa33d3e16332eace2e84326
parentd5d74b0aaaa221ad64aa1d86cb8428df2b885cf7
We were ValueOrDie()ing in one place, and TF_CHECK_OK()ing in another. Both should gracefully return an error condition.

Add some tests to check this.

PiperOrigin-RevId: 189888700
tensorflow/compiler/jit/xla_device_context.cc
tensorflow/compiler/jit/xla_launch_util.cc
tensorflow/compiler/tests/BUILD
tensorflow/compiler/tests/oom_test.py [new file with mode: 0644]