You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/06/16 17:17:17 UTC

[GitHub] [incubator-tvm] tqchen commented on pull request #5822: fix relay.build to not change the module argument in place

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


   What I would do instead is to simply move `relay_module.CopyOnWrite()` inside `params.size() != 0`, which triggers copy if there is additional copy of relay module outside the function.
   
   Note that for mods pass from python, CopyOnWrite always triggers a copy, unless we do `mod._move()` (moves the python side of the ref)


----------------------------------------------------------------
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:
users@infra.apache.org