aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/hlo_computation.cc
diff options
context:
space:
mode:
authorGravatar Justin Lebar <jlebar@google.com>2018-02-01 21:34:18 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-02-02 10:28:02 -0800
commit3be90a490c31d5a8fad70713e059bbb3e723e664 (patch)
tree8ed60399e055c1cf917fede685ff1304230801c8 /tensorflow/compiler/xla/service/hlo_computation.cc
parentd7fcf5a865570073569817fffafc07c8c74ec66d (diff)
Internal change
PiperOrigin-RevId: 184239740
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_computation.cc')
-rw-r--r--tensorflow/compiler/xla/service/hlo_computation.cc21
1 files changed, 5 insertions, 16 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_computation.cc b/tensorflow/compiler/xla/service/hlo_computation.cc
index a63affa06c..5432419e4a 100644
--- a/tensorflow/compiler/xla/service/hlo_computation.cc
+++ b/tensorflow/compiler/xla/service/hlo_computation.cc
@@ -461,20 +461,6 @@ HloInstruction* HloComputation::CreateFusionInstruction(
return fusion_instruction;
}
-HloInstruction* HloComputation::CreateFusionInstructionForBackwardConvolution(
- tensorflow::gtl::ArraySlice<HloInstruction*> instructions_to_fuse,
- HloInstruction::FusionKind fusion_kind, const Window& window,
- const ConvolutionDimensionNumbers& conv_dnums) {
- CHECK(HloInstruction::FusionKind::kConvBackwardFilter == fusion_kind ||
- HloInstruction::FusionKind::kConvBackwardInput == fusion_kind);
- HloInstruction* root = instructions_to_fuse.front();
- HloInstruction* fusion_instruction =
- AddInstruction(HloInstruction::CreateFusionForBackwardConvolution(
- root->shape(), fusion_kind, window, conv_dnums, root));
- FuseInstructionsInto(instructions_to_fuse, fusion_instruction);
- return fusion_instruction;
-}
-
StatusOr<HloInstruction*> HloComputation::DeepCopyHelper(
HloInstruction* instruction, const ShapeTree<bool>* indices_to_copy,
ShapeTree<HloInstruction*>* copies_added, ShapeIndex* index) {
@@ -577,8 +563,11 @@ Status HloComputation::ReplaceWithNewInstruction(
Status HloComputation::ReplaceInstruction(HloInstruction* old_instruction,
HloInstruction* new_instruction) {
- TF_RET_CHECK(ShapeUtil::Compatible(old_instruction->shape(),
- new_instruction->shape()));
+ TF_RET_CHECK(
+ ShapeUtil::Compatible(old_instruction->shape(), new_instruction->shape()))
+ << ShapeUtil::HumanString(old_instruction->shape()) << " vs "
+ << ShapeUtil::HumanString(new_instruction->shape());
+
VLOG(10) << "transformed " << old_instruction->ToString() << " to "
<< new_instruction->ToString();
// Try to add metadata for HLO instructions that are created to replace