Tvm: [Torch] Support aten::tensor, aten::empty and aten::numel

Created on 23 Sep 2020  路  4Comments  路  Source: apache/tvm

Hi TVM teams,

TVM currently support pytorch 1.4 and torchvision 0.5. I want to know is there any plan to support pytorch 1.6 version to trace the object detection models in pytorch 1.6?

For faster rcnn, which is not partly scripted and thus can be traced completely, I get following missing ops with PyTorch 1.6

NotImplementedError: The following operators are not implemented: ['aten::tensor', 'aten::empty', 'aten::numel']

_Originally posted by @masahi in https://github.com/apache/incubator-tvm/pull/6449#issuecomment-693096782_

help wanted

Most helpful comment

Yes, we want to support a newer version but our quantization support is completely broken in PyTorch 1.6 due to the breaking change they introduced https://github.com/pytorch/pytorch/issues/42497. I don't know a simple workaround for this.

Either we wait for Torch people to fix this issue or we spend significant effort to add workaround. Until then we are stuck with 1.4 or 1.5 (CI is at 1.4)

The ops aten::tensor, aten::empty, and aten::numel are very trivial ops actually, so if you want to just convert 1.6 detection models, adding support for them shouldn't be hard. You don't need to wait for 1.6 support.

All 4 comments

Yes, we want to support a newer version but our quantization support is completely broken in PyTorch 1.6 due to the breaking change they introduced https://github.com/pytorch/pytorch/issues/42497. I don't know a simple workaround for this.

Either we wait for Torch people to fix this issue or we spend significant effort to add workaround. Until then we are stuck with 1.4 or 1.5 (CI is at 1.4)

The ops aten::tensor, aten::empty, and aten::numel are very trivial ops actually, so if you want to just convert 1.6 detection models, adding support for them shouldn't be hard. You don't need to wait for 1.6 support.

Hi, That's great news! Relink it to #6594 ?

ah sorry, the link is fixed

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zhiics picture zhiics  路  7Comments

MarisaKirisame picture MarisaKirisame  路  5Comments

edmBernard picture edmBernard  路  5Comments

yzh119 picture yzh119  路  3Comments

tqchen picture tqchen  路  6Comments