mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
[XLA] Support conditional in all backends.
PiperOrigin-RevId: 179900775
This commit is contained in:
committed by
TensorFlower Gardener
parent
a2039aa91f
commit
531bf79775
@@ -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:
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user