From 43c95696c0ca68314c613ed0a55e4f58afc784df Mon Sep 17 00:00:00 2001 From: Samuel Marks <807580+SamuelMarks@users.noreply.github.com> Date: Wed, 20 Oct 2021 10:32:32 -0400 Subject: [PATCH] [tensorflow/compiler/xla/service/space_to_batch_converter.cc] Use `const auto&` instead of `const auto` --- tensorflow/compiler/xla/service/space_to_batch_converter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/compiler/xla/service/space_to_batch_converter.cc b/tensorflow/compiler/xla/service/space_to_batch_converter.cc index eee7327fbbe000..0f5d38b5a7f409 100644 --- a/tensorflow/compiler/xla/service/space_to_batch_converter.cc +++ b/tensorflow/compiler/xla/service/space_to_batch_converter.cc @@ -1329,7 +1329,7 @@ void ConvolutionVisitor::PropagateOnBroadcast(HloInstruction* consumer, } std::vector broadcast_dims; - const auto dimensions = consumer->dimensions(); + const auto& dimensions = consumer->dimensions(); broadcast_dims.reserve(dimensions.size()); for (auto j : dimensions) { broadcast_dims.push_back(DimLookUp(permute_dims, j));