tlc-pack / relax

Apache License 2.0
193 stars 58 forks source link

[Tracking Issue] [Experimental] Relax Fallback Mechanism for Missing Operators #373

Open sunggg opened 1 year ago

sunggg commented 1 year ago

Operator coverage has been one of the biggest problems. Currently, when certain operator is not supported in TVM, importer simply throws an error and there is no way to proceed until the missing operator is implemented. To overcome this issue, we came up with an idea to offload those missing operators to the frontend runtime and run them together with the rest of TVM operators. For example, if there is an missing operator in PyTorch importer, we can run it on the PyTorch runtime and interact with the rest of the model.

My branch here demonstrates this idea with TorchFx frontend and Libtorch runtime and tested with TorchVision models.

Progress Tracking

Future Possibilites

cc. @junrushao @YuchenJin @tqchen

Hzfengsy commented 1 year ago

I'm suffering from the same issue with Bert models.