[TF:XLA] Separate on-host and on-device shape and layout in HloModule.
authorA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 1 May 2018 23:17:21 +0000 (16:17 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 1 May 2018 23:19:55 +0000 (16:19 -0700)
commit210abebd3febdd2c44ab5021bcebf8f1f5d451c4
tree22810ab30037169b4df8fec07016a8d8f69b7a6e
parentb25e6fe32cccd29ec4cb4014bbb45d62b75835b4
[TF:XLA] Separate on-host and on-device shape and layout in HloModule.

Previously, only one layout was stored with an HLO module. This CL allows
HLO passes to modify the on-device layouts without affecting the on-host
layout (provided by the client)

PiperOrigin-RevId: 195014875
24 files changed:
tensorflow/compiler/xla/client/local_client.cc
tensorflow/compiler/xla/client/local_client.h
tensorflow/compiler/xla/service/cpu/cpu_compiler.cc
tensorflow/compiler/xla/service/cpu/cpu_executable.cc
tensorflow/compiler/xla/service/cpu/cpu_layout_assignment.h
tensorflow/compiler/xla/service/cpu/cpu_layout_assignment_test.cc
tensorflow/compiler/xla/service/executable.h
tensorflow/compiler/xla/service/gpu/gpu_compiler.cc
tensorflow/compiler/xla/service/gpu/gpu_layout_assignment.h
tensorflow/compiler/xla/service/gpu/gpu_layout_assignment_test.cc
tensorflow/compiler/xla/service/hlo_module.cc
tensorflow/compiler/xla/service/hlo_module.h
tensorflow/compiler/xla/service/hlo_module_config.cc
tensorflow/compiler/xla/service/hlo_module_config.h
tensorflow/compiler/xla/service/interpreter/compiler.cc
tensorflow/compiler/xla/service/layout_assignment.cc
tensorflow/compiler/xla/service/layout_assignment.h
tensorflow/compiler/xla/service/layout_assignment_test.cc
tensorflow/compiler/xla/service/service.cc
tensorflow/compiler/xla/service/service.h
tensorflow/compiler/xla/tests/BUILD
tensorflow/compiler/xla/tests/hlo_test_base.h
tensorflow/compiler/xla/tools/parser/hlo_parser.cc
tensorflow/compiler/xla/tools/parser/hlo_parser_test.cc