[XLA] Make hlo deserialization stable for HloModule by sorting by ids when creating...
authorA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 9 May 2018 23:40:03 +0000 (16:40 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 9 May 2018 23:42:52 +0000 (16:42 -0700)
commitc07b719ab030c46f19c8e5cdd92730eaec38a8fb
treeac03b54d62c68ce528027e7e88d912618b8dac0e
parentb348209171a2fac38def122d2ee43bd2fc3d9b1d
[XLA] Make hlo deserialization stable for HloModule by sorting by ids when creating from proto.

Also, delete the HloModule parameter HloInstruction::CreateFromProto, it's not used anywhere.

Also, in ToProto, set sharding to proto if there is sharding.

PiperOrigin-RevId: 196049173
tensorflow/compiler/xla/service/hlo_computation.cc
tensorflow/compiler/xla/service/hlo_computation.h
tensorflow/compiler/xla/service/hlo_instruction.cc
tensorflow/compiler/xla/service/hlo_instruction.h
tensorflow/compiler/xla/service/hlo_module.cc