Pytorch model compilation

Hello,

I am facing an issue while loading a pytorch model with tvm. The following is the error scenario.

  1. If I do torch.jit.load(“path”) without doing import tvm, the load is successful.
  2. If I do it after import tvm in the script, there is an error of munmap_chunk(), invalid pointer during torch.jit.load(“path”).

Is there any way to avoid this issue while using tvm?

Thanks in advance.

Same error. Do you have solved it?

See https://github.com/apache/tvm/issues/9362. A simple workaround is to import torch before tvm.