Do not force default layout when there is no need to.
authorA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 18 May 2018 00:11:47 +0000 (17:11 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 18 May 2018 00:14:53 +0000 (17:14 -0700)
commit24c6a2186b888dd9035aa629ef49bc48518c920a
treeef36c04e5c3f3e950a0583919551b5be1fb38f6e
parent1130e5be68e4cc2f83ba6f883e4e3b89d0551bf0
Do not force default layout when there is no need to.
Allow the inner computations to negotiate a root and parameter layouts different from default.
END_PUBLIC

RELNOTES: n/a

---------------------
BEGIN_PUBLIC
Automated g4 rollback of changelist 194293187

PiperOrigin-RevId: 197076025
16 files changed:
tensorflow/compiler/xla/service/BUILD
tensorflow/compiler/xla/service/computation_layout.cc
tensorflow/compiler/xla/service/computation_layout.h
tensorflow/compiler/xla/service/cpu/cpu_compiler.cc
tensorflow/compiler/xla/service/cpu/cpu_layout_assignment.h
tensorflow/compiler/xla/service/cpu/cpu_layout_assignment_test.cc
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_instruction.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/tuple_simplifier.cc