You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by yincw via Apache TVM Discuss <no...@discuss.tvm.ai> on 2021/06/27 09:01:54 UTC

[Apache TVM Discuss] [Questions] NotImplementedError: The following operators are not implemented: ['aten::im2col']


I’m using `relay.frontend.from_pytorch` to convert pytorch model, but raise error like this:

    Traceback (most recent call last):
      File "tune_network_cuda_test.py", line 200, in <module>
        mod, params, input_shape, output_shape = get_local_network("pt", network, batch_size, shape, layout)
      File "tune_network_cuda_test.py", line 97, in get_local_network
        mod, params = relay.frontend.from_pytorch(torch_model, shape_info)
      File "/wen/yincw/open_source/tvm/python/tvm/relay/frontend/pytorch.py", line 3285, in from_pytorch
        converter.report_missing_conversion(op_names)
      File "/wen/yincw/open_source/tvm/python/tvm/relay/frontend/pytorch.py", line 2545, in report_missing_conversion
        raise NotImplementedError(msg)
    NotImplementedError: The following operators are not implemented: ['aten::im2col']

and another similar error:

    Traceback (most recent call last):
      File "tune_network_cuda_test.py", line 209, in <module>
        mod, params, input_shape, output_shape = get_local_network("pt", network, batch_size, shape, layout)
      File "tune_network_cuda_test.py", line 106, in get_local_network
        mod, params = relay.frontend.from_pytorch(torch_model, shape_info)
      File "/wen/yincw/open_source/tvm/python/tvm/relay/frontend/pytorch.py", line 3285, in from_pytorch
        converter.report_missing_conversion(op_names)
      File "/wen/yincw/open_source/tvm/python/tvm/relay/frontend/pytorch.py", line 2545, in report_missing_conversion
        raise NotImplementedError(msg)
    NotImplementedError: The following operators are not implemented: ['aten::grid_sampler']

pytorch=1.3 tvm=0.8 dev0

Could anyone help?





---
[Visit Topic](https://discuss.tvm.apache.org/t/notimplementederror-the-following-operators-are-not-implemented-aten-im2col/10334/1) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/a58bd6b0e3d79e8ec5ef46bdc7f580347a43758489117bfaa9afba0786a2dbe8).

[Apache TVM Discuss] [Questions] NotImplementedError: The following operators are not implemented: ['aten::im2col']

Posted by Pzq via Apache TVM Discuss <no...@discuss.tvm.ai>.

Can you provide your pytorch model?





---
[Visit Topic](https://discuss.tvm.apache.org/t/notimplementederror-the-following-operators-are-not-implemented-aten-im2col/10334/3) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/1da2957f8ef7c27315c15a9ab755327479122682aa9e39c20ce321513fc4c764).

[Apache TVM Discuss] [Questions] NotImplementedError: The following operators are not implemented: ['aten::im2col']

Posted by popojames via Apache TVM Discuss <no...@discuss.tvm.ai>.

Same question when trying to convert ConvBERT. Any help?





---
[Visit Topic](https://discuss.tvm.apache.org/t/notimplementederror-the-following-operators-are-not-implemented-aten-im2col/10334/2) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/033f0169a70be01bf1f33be2fa96e0bcc8c0bcffd01b6e5e02602eff67bdff36).