aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/algebraic_simplifier.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/compiler/xla/service/algebraic_simplifier.cc')
-rw-r--r--tensorflow/compiler/xla/service/algebraic_simplifier.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/compiler/xla/service/algebraic_simplifier.cc b/tensorflow/compiler/xla/service/algebraic_simplifier.cc
index b351861425..4837402c15 100644
--- a/tensorflow/compiler/xla/service/algebraic_simplifier.cc
+++ b/tensorflow/compiler/xla/service/algebraic_simplifier.cc
@@ -1488,9 +1488,9 @@ Status AlgebraicSimplifierVisitor::HandleConvolution(
// We cannot insert bitcasts if the layouts will not be compatible.
// TODO(b/33178038): Consider inserting a transpose if a bitcast would be
// invalid.
- if (!valid_bitcast_callback_(lhs->shape(), input_shape) ||
- !valid_bitcast_callback_(rhs->shape(), new_filter_shape) ||
- !valid_bitcast_callback_(dot_output_shape, convolution_shape)) {
+ if (!valid_bitcast_callback_(input_shape, lhs->shape()) ||
+ !valid_bitcast_callback_(new_filter_shape, rhs->shape()) ||
+ !valid_bitcast_callback_(convolution_shape, dot_output_shape)) {
return Status::OK();
}