Skip to content

Commit

Permalink
[TVM] const auto p -> const auto &p (#4861)
Browse files Browse the repository at this point in the history
  • Loading branch information
hlu1 authored Feb 11, 2020
1 parent 91d2f5a commit c42bb6c
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 c42bb6c

Please sign in to comment.