You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "0x00-pl (via GitHub)" <gi...@apache.org> on 2023/03/10 11:50:41 UTC

[GitHub] [tvm] 0x00-pl commented on issue #14268: [Bug] NotImplementedError when converting pytorch module

0x00-pl commented on issue #14268:
URL: https://github.com/apache/tvm/issues/14268#issuecomment-1463692515

   https://tvm.apache.org/docs/how_to/compile_models/from_pytorch.html#load-a-pretrained-pytorch-model
   
   I followed this instruction. From a GraphModule construct into ScriptModule.
   
       tracer = Tracer()
       graph = tracer.trace(my_model)
       graph_model = GraphModule(tracer.root, graph)
       scripted_model = torch.jit.trace(graph_model, example_inputs).eval()


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org