4 ms·
Implementing a custom layer isn't hard[0], that said if it were me I'd rather add it in the runtime, e.g. via a TensorRT plugin. [0] e.g. https://jamesmccaffre
by Y_Y 3y ago
Implementing a custom layer isn't hard[0], that said if it were me I'd rather add it in the runtime, e.g. via a TensorRT plugin.
[0] e.g. https://jamesmccaffrey.wordpress.com/2021/09/02/example-of-a-pytorch-custom-layer/ https://jamesmccaffrey.wordpress.com/2021/09/02/example-of-a...
- mathisfun123 3y agoThat tut only shows you how to remix existing operators. That obviously won't work here (not what's required). You need to do this https://pytorch.org/tutorials/advanced/dispatcher.html https://pytorch.org/tutorials/advanced/dispatcher.html More complex but still not that hard.