[TVM] const auto p -> const auto &p (#4861)
authorhlu1 <14827759+hlu1@users.noreply.github.com>
Tue, 11 Feb 2020 16:52:25 +0000 (08:52 -0800)
committerGitHub <noreply@github.com>
Tue, 11 Feb 2020 16:52:25 +0000 (08:52 -0800)
src/relay/op/tensor/transform.cc

index 9c4138c..969912f 100644 (file)
@@ -1673,7 +1673,7 @@ bool SqueezeRel(const Array<Type>& 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 {