Skip to content

Commit

Permalink
[TVM] const auto p -> const auto &p (apache#4861)
Browse files Browse the repository at this point in the history
  • Loading branch information
hlu1 authored and alexwong committed Feb 26, 2020
1 parent 9d20eb0 commit c6bcdf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/relay/op/tensor/transform.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c6bcdf7

Please sign in to comment.