junrushao1994 commented on pull request #5822:
URL: https://github.com/apache/incubator-tvm/pull/5822#issuecomment-644961499


   @t-vi Here is what is going on: Internally, `CopyOnWrite` checks if the 
object (in our case, `relay_module`) is unique. If so, it does nothing; 
otherwise, it triggers a copy to make sure that the object is unique. 
Therefore, after calling `CopyOnWrite`, it makes sure that any change only 
happens locally, in our case, making relay.build don't change the input.


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to