[XLA] Redesign: handle metadata and sharding.
authorA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 27 Mar 2018 00:39:51 +0000 (17:39 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 27 Mar 2018 00:42:55 +0000 (17:42 -0700)
commit931f6d553172ddfc9ec4a7a94ea2c6233bf33cb0
tree1690c1ef469bb6843c179bcb4a0d4d010902c3cf
parenteda7aa3f7e763734f5f3550bed8b044a384b2ce8
[XLA] Redesign: handle metadata and sharding.

- Add a xla.OpSharding field to the HloInstructionProto.
- Metatdata handling is tested.

PiperOrigin-RevId: 190553731
tensorflow/compiler/xla/client/xla_client/xla_builder.cc
tensorflow/compiler/xla/client/xla_client/xla_builder.h
tensorflow/compiler/xla/service/hlo.proto
tensorflow/compiler/xla/tests/BUILD
tensorflow/compiler/xla/tests/hlo_metadata_test.cc