You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "tqchen (via GitHub)" <gi...@apache.org> on 2024/10/08 17:26:10 UTC

Re: [PR] [Relax] Enhance global var struct info update in BlockBuilder [tvm]

tqchen commented on code in PR #17446:
URL: https://github.com/apache/tvm/pull/17446#discussion_r1792252832


##########
src/relax/ir/block_builder.cc:
##########
@@ -141,6 +130,8 @@ class BlockBuilderImpl : public BlockBuilderNode {
     }
 
     context_mod_->Update(gv, function);
+    // Force update struct info
+    gv->struct_info_ = GetStructInfo(function);

Review Comment:
   one potential issue here is that the caller still relies on the assumption of previous function sigature, so automatically updating this may not always be desirable, is there any motivating usecase here?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org