tvm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [incubator-tvm] tqchen commented on pull request #5822: fix to not change the module argument in place
Date Tue, 16 Jun 2020 17:17:17 GMT

tqchen commented on pull request #5822:

   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:

View raw message