You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by tq...@apache.org on 2021/04/12 13:29:23 UTC

[tvm] branch main updated: fix compiling warning in simplify_expr.h (#7828)

This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new fc0a48f  fix compiling warning in simplify_expr.h (#7828)
fc0a48f is described below

commit fc0a48f6f7258cc3e5eba2e55fb38b89a957622d
Author: Siyuan Feng <Hz...@sjtu.edu.cn>
AuthorDate: Mon Apr 12 21:28:58 2021 +0800

    fix compiling warning in simplify_expr.h (#7828)
---
 src/relay/transforms/simplify_expr.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/relay/transforms/simplify_expr.h b/src/relay/transforms/simplify_expr.h
index 6b3925e..1dc919b 100644
--- a/src/relay/transforms/simplify_expr.h
+++ b/src/relay/transforms/simplify_expr.h
@@ -74,7 +74,7 @@ class DFPatternRewriteComposer {
 
   inline Array<DFPatternCallback> MakeCallbacks() const {
     Array<DFPatternCallback> callbacks;
-    for (const auto rewrite : rewrites_) {
+    for (const auto& rewrite : rewrites_) {
       callbacks.push_back(rewrite->MakeCallback());
     }
     return callbacks;