When I convert a QNN with aten::upsample_nearest2d op, I encountered a error with:
File "/home/eleflea/.local/lib/python3.7/site-packages/tvm-0.8.dev704+g3a0e3a5bb-py3.7-linux-x86_64.egg/tvm/relay/frontend/pytorch.py", line 1749, in upsample
assert isinstance(inputs[-2], float)
After some research I found that for some quantized op, tvm add qparams manually to help convert. But for aten::upsample_nearest2d, it seems to be missing.
So I add aten::upsample_nearest2d just above aten::upsample_bilinear2d at here. And it works.
When I convert a QNN with
aten::upsample_nearest2dop, I encountered a error with:File "/home/eleflea/.local/lib/python3.7/site-packages/tvm-0.8.dev704+g3a0e3a5bb-py3.7-linux-x86_64.egg/tvm/relay/frontend/pytorch.py", line 1749, in upsample
assert isinstance(inputs[-2], float)
After some research I found that for some quantized op, tvm add qparams manually to help convert. But for
aten::upsample_nearest2d, it seems to be missing.So I add
aten::upsample_nearest2djust aboveaten::upsample_bilinear2dat here. And it works.