Johnson9009 commented on pull request #8778:
URL: https://github.com/apache/tvm/pull/8778#issuecomment-900956015


   After quick browsing the code of several Module Pass, I found almost each of 
them will modify the original IRModule, the original IRModule can be changed 
even through it is passed as constant, the reason is the method `operator->()` 
of IRModule will return a mutable pointer of IRModuleNode.
   
   
https://github.com/apache/tvm/blob/e7748aac40bd4c263882323393ea8896837614a9/include/tvm/ir/module.h#L365-L370
   
   @tqchen @jroesch Why we need IRModule's `operator->()` return a mutable 
pointer instead of a constant one?


-- 
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


Reply via email to