aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/hlo_instructions.cc
diff options
context:
space:
mode:
authorGravatar Michael Kuperstein <mkuper@google.com>2018-08-29 16:43:42 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-29 16:48:33 -0700
commit24af42fce7e123b162899cbcc81769f919b0029a (patch)
tree610c9b77c30c60a9d51abff94ccd0b098af1a0c4 /tensorflow/compiler/xla/service/hlo_instructions.cc
parent7db159e208ec65824779281277fa3b7fc4cd857b (diff)
Automated rollback of commit 065f9b833ffbb3b2f03d63febb186275674ba133
PiperOrigin-RevId: 210816152
Diffstat (limited to 'tensorflow/compiler/xla/service/hlo_instructions.cc')
-rw-r--r--tensorflow/compiler/xla/service/hlo_instructions.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/compiler/xla/service/hlo_instructions.cc b/tensorflow/compiler/xla/service/hlo_instructions.cc
index ffc74cfedd..0b7f741d73 100644
--- a/tensorflow/compiler/xla/service/hlo_instructions.cc
+++ b/tensorflow/compiler/xla/service/hlo_instructions.cc
@@ -586,7 +586,7 @@ std::unique_ptr<HloInstruction> HloReduceInstruction::CloneWithNewOperandsImpl(
const Shape& shape,
tensorflow::gtl::ArraySlice<HloInstruction*> new_operands,
HloCloneContext* context) const {
- CHECK_EQ(new_operands.size(), 2);
+ CHECK_EQ(new_operands.size() % 2, 0);
return absl::make_unique<HloReduceInstruction>(shape, new_operands,
dimensions(), to_apply());
}