masahi commented on pull request #7231:
URL: https://github.com/apache/tvm/pull/7231#issuecomment-756720013


   I experimented with this approach to support inplace update in torchvision 
faster rcnn / mask rcnn:
   
   
https://github.com/pytorch/vision/blob/6315358dd06e3a2bcbe9c1e8cdaa10898ac2b308/torchvision/ops/poolers.py#L269
   
   This pass will not hit during tracing mode, so it is not an issue for us. 
But I tried anyway to experiment if `aten::copy_` to `aten::index_put` 
conversion would work, and indeed for faster rcnn / maskrcnn it cleanly 
replaced `aten::copy_`.
   
    I thought it would be promissing, but indeed there could be many limitation 
/ corner cases ...


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


Reply via email to