[XLA] Support conditional in all backends.

PiperOrigin-RevId: 179900775
This commit is contained in:
A. Unique TensorFlower
2017-12-22 00:07:40 -08:00
committed by TensorFlower Gardener
parent a2039aa91f
commit 531bf79775
2 changed files with 3 additions and 7 deletions

View File

@@ -1684,9 +1684,11 @@ bool HloInstruction::IdenticalSlowPath(
return custom_call_target_ == other.custom_call_target_;
case HloOpcode::kReverse:
return dimensions() == other.dimensions();
case HloOpcode::kConditional:
return eq_computations(true_computation(), other.true_computation()) &&
eq_computations(false_computation(), other.false_computation());
// These opcodes are not yet supported.
case HloOpcode::kConditional:
case HloOpcode::kInfeed:
case HloOpcode::kOutfeed:
case HloOpcode::kSort:

View File

@@ -442,12 +442,6 @@ xla_test(
xla_test(
name = "conditional_test",
srcs = ["conditional_test.cc"],
# Currently, Conditional is supported only in CPU and GPU backends.
backends = [
"cpu",
"gpu",
"cpu_parallel",
],
deps = [
"//tensorflow/compiler/xla:xla_data_proto",
"//tensorflow/compiler/xla/client:computation_builder",