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 2021/02/13 03:44:01 UTC

[GitHub] [tvm] masahi commented on issue #7399: TVM compile pytorch model mutliple times seems to have memory leak

masahi commented on issue #7399:
URL: https://github.com/apache/tvm/issues/7399#issuecomment-778556686


   Note that this is not specific to pytorch, try moving 
   
   ```
   input_name = "input0"
   shape = [1, 3, 224, 224]
   data = torch.randn(shape, dtype=torch.float32)
   model = torchvision.models.resnet50(pretrained=False, progress=True)
   
   shape_list = [(input_name, data.shape)]
   scripted_model = torch.jit.trace(model, data).eval()
   mod, params = relay.frontend.from_pytorch(scripted_model, shape_list)
   ```
   outside of `tvm_build(...)`


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