projects
/
platform
/
upstream
/
tvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91d2f5a
)
[TVM] const auto p -> const auto &p (#4861)
author
hlu1
<14827759+hlu1@users.noreply.github.com>
Tue, 11 Feb 2020 16:52:25 +0000
(08:52 -0800)
committer
GitHub
<noreply@github.com>
Tue, 11 Feb 2020 16:52:25 +0000
(08:52 -0800)
src/relay/op/tensor/transform.cc
patch
|
blob
|
history
diff --git
a/src/relay/op/tensor/transform.cc
b/src/relay/op/tensor/transform.cc
index
9c4138c
..
969912f
100644
(file)
--- a/
src/relay/op/tensor/transform.cc
+++ b/
src/relay/op/tensor/transform.cc
@@
-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 {