From c42bb6c09fe855dbc0eb2eafe5a06540c2ea818d Mon Sep 17 00:00:00 2001 From: hlu1 <14827759+hlu1@users.noreply.github.com> Date: Tue, 11 Feb 2020 08:52:25 -0800 Subject: [PATCH] [TVM] const auto p -> const auto &p (#4861) --- src/relay/op/tensor/transform.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/relay/op/tensor/transform.cc b/src/relay/op/tensor/transform.cc index 9c4138c84c11..969912f4de8b 100644 --- a/src/relay/op/tensor/transform.cc +++ b/src/relay/op/tensor/transform.cc @@ -1673,7 +1673,7 @@ bool SqueezeRel(const Array& types, CHECK_LT(axis_val, original_shape.size()); original_shape.at(axis_val).second = false; } - for (const auto p : original_shape) { + for (const auto& p : original_shape) { if (p.second) { result_shape.push_back(p.first); } else {