alexwong edited a comment on issue #4497: [Relay] Add a PyTorch to Relay Parser URL: https://github.com/apache/incubator-tvm/pull/4497#issuecomment-582619862 > @alexwong please address my comment at https://github.com/apache/incubator-tvm/pull/4497/files#r370911013 > > Add `with torch.no_grad()` and remove `detach()` there. Also calling `eval()` once on your torch module is a good idea. I've seen some issues if I omit `eval()` and do forward. Resolved, eval() is called in load_torchvision or the specific single op function.
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
