Add validation for output_index of Feed.id.
authorA. Unique TensorFlower <gardener@tensorflow.org>
Mon, 9 Apr 2018 17:38:58 +0000 (10:38 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Mon, 9 Apr 2018 17:41:47 +0000 (10:41 -0700)
commitc89ab82a82585cdaa90bf4911980e9e845909e78
tree9300b5cc17a8cb8f050209a35ad6415648655317
parentaed12f35e29924e43f191d42fdcc6f9e025a3a3e
Add validation for output_index of Feed.id.
Return error instead of crash if output_index is not less than the output number of the operation.

PiperOrigin-RevId: 192148911
tensorflow/compiler/tf2xla/tf2xla_test.cc
tensorflow/compiler/tf2xla/tf2xla_util.cc