Hello, users of pytorch. The reason that I want to write my own activation function with cuda C++ is that I want to calculate my own backpropagation. I tried to find some tutorials but very limited resources can be found. A tutorial here Custom C++ and CUDA Extensions — PyTorch Tutorials 1.10.0+cu102 documentation 3 is useful. I think some modifications of present files of an activation function would be the easiest way for me to write my own one. Could someone please tell me where should I start or suggest other resources for my request? Thank you in advance.