Lunderberg commented on PR #16843: URL: https://github.com/apache/tvm/pull/16843#issuecomment-2036068681
The `GlobalVar` instances themselves don't need to be changed, only the functions to which they point. This is why the pre-transform steps don't need to modify any function bodies, because the `GlobalVar` is still present in the `IRModule`. After running the transform, the values from `new_subset` are only copied back to the original `mod` if they weren't one of the dummy `ExternFunc` instances. -- 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-unsubscr...@tvm.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org