grimoire / torch2trt_dynamic

A pytorch to tensorrt convert with dynamic shape support
MIT License
254 stars 34 forks source link

how to add a converter for custom operateion written by c++ #24

Open deemoo-wang opened 2 years ago

deemoo-wang commented 2 years ago

the model i used has some opration written by c++, using torch.utils.cpp_extention with a .cpp file. I want to convert the model into trt model but failed with the error NVALID_ARGUMENT: Cannot find binding of given name: input_0. how can i write a converter for the operation written by c++?

grimoire commented 2 years ago

Note that since there are some limits on TensorRT, I can not promise that your custom ops can be implemented as a TensorRT plugin.