I am trying to optimize this model https://github.com/yucornetto/MGMatting
...
model.load_state_dict(...)
model = model.eval()
model = torch.jit.trace(model, (image, mask), strict=False).eval()
mod, params = relay.frontend.from_pytorch(model, [('image', image.shape), ('guidance', mask.shape)])
...
But
relay.frontend.from_pytorch fails with the following error:
The following operators are not implemented: ['aten::dot', 'prim::DictConstruct', 'aten::mv']
I could get rid of prim::DictConstruct operation but aten::dot and aten:mv are needed
Environment
Operating System: Windows 10
Torch version: 1.10.1+cpu
TVM version: git commit 115919b (18 Dec 2021)