lhutton1 commented on issue #9349:
URL: https://github.com/apache/tvm/issues/9349#issuecomment-950685224


   > ~Tracing MaskRCNN is broken with this release [pytorch/vision#4158 
(comment)](https://github.com/pytorch/vision/issues/4158#issuecomment-950043269)~
   > 
   > cc @hgt312
   > 
   > UPDATE: If I import PyTorch before TVM, the error I got during tracing is 
gone. MaskRCNN still traces correctly.
   
   Thanks for looking into the upgrade @masahi, this will be very useful! I've 
also experienced the import order issue while attempting to trace a PyTorch 
model. For example,
   ```python
   import tvm.driver.tvmc as tvmc
   import torch
   
   traced_model = tvmc.load("mobilenetv2_quantized.pth", shape_dict={"input0": 
[1, 3, 224, 224]})
   ```
   Results in the following:
   ```
   munmap_chunk(): invalid pointer
   Aborted (core dumped)
   ```
   Yet after changing the order of imports, it works perfectly fine. The reason 
I bring this up is because sometimes its not possible to simply swap the order 
of imports to fix the issue. For example, someone using tvmc directly from the 
command line. Are you aware of any other ways this could be fixed?


-- 
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: [email protected]

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


Reply via email to