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 08:37:09 UTC
[GitHub] [tvm] 0x00-pl opened a new issue, #14268: [Bug] NotImplementedError when converting pytorch module
0x00-pl opened a new issue, #14268:
URL: https://github.com/apache/tvm/issues/14268
File "/home/pl/github/test_torch/pytorch_rendering/graph_to_tvm.py", line 7, in graph_to_tvm
mod, params = relay.frontend.from_pytorch(scripted_model, shape_list)
File "/home/pl/github/test_torch/venv/lib/python3.8/site-packages/tvm/relay/frontend/pytorch.py", line 4517, in from_pytorch
converter.report_missing_conversion(op_names)
File "/home/pl/github/test_torch/venv/lib/python3.8/site-packages/tvm/relay/frontend/pytorch.py", line 3722, in report_missing_conversion
raise NotImplementedError(msg)
NotImplementedError: The following operators are not implemented: ['prims::broadcast_in_dim', 'prims::mul', 'prims::squeeze', 'prims::split_dim', 'aten::slice_scatter', 'prims::pow', 'prims::sum', 'prims::cat', 'prims::amax', 'prims::ne', 'prims::exp', 'prims::view_of', 'prims::convert_element_type', 'prims::add', 'prims::collapse_view', 'prims::where', 'prims::sub', 'prims::div', 'prims::transpose', 'prims::log', 'prims::tanh', 'prims::copy_to', 'aten::as_strided', 'prims::neg', 'prims::var', 'prims::rsqrt', 'aten::alias']
python-BaseException
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] 0x00-pl commented on issue #14268: [Bug] NotImplementedError when converting pytorch module
Posted by "0x00-pl (via GitHub)" <gi...@apache.org>.
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
[GitHub] [tvm] masahi commented on issue #14268: [Bug] NotImplementedError when converting pytorch module
Posted by "masahi (via GitHub)" <gi...@apache.org>.
masahi commented on issue #14268:
URL: https://github.com/apache/tvm/issues/14268#issuecomment-1463632392
You are probably using `torch.jit.script`. Please use tracing instead.
--
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
[GitHub] [tvm] masahi closed issue #14268: [Bug] NotImplementedError when converting pytorch module
Posted by "masahi (via GitHub)" <gi...@apache.org>.
masahi closed issue #14268: [Bug] NotImplementedError when converting pytorch module
URL: https://github.com/apache/tvm/issues/14268
--
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