Add HLO evaluator support for Gather
authorSanjoy Das <sanjoy@google.com>
Tue, 6 Mar 2018 20:15:47 +0000 (12:15 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 6 Mar 2018 20:19:43 +0000 (12:19 -0800)
commitaa129d523f27739c98032fb08346def395b1afda
treec33d4ced18192344822e730a7cd01a047e6f370b
parenta8bd3677077ffbcae4416b5a18b50d128cbf3a46
Add HLO evaluator support for Gather

This isn't optimal -- it copies element by element -- but I figured, at least
for bringup, it will be helpful to have the HLO evaluator follow the spec
closely.

PiperOrigin-RevId: 188061274
tensorflow/compiler/xla/literal_util.cc
tensorflow/compiler/xla/literal_util.h
tensorflow/compiler/xla/service/hlo_evaluator.cc
tensorflow/compiler/xla/service/hlo_evaluator.h
tensorflow/compiler/xla/service/hlo_evaluator_test.cc
tensorflow/compiler/xla/shape_util.h
tensorflow/compiler/xla/tests/BUILD
tensorflow/compiler/xla/tests/hlo_verified_test_base.cc
tensorflow/compiler/xla/tests/hlo_verified_test_base.h
tensorflow/compiler/xla/util.h