Hello. I need to implement some custom op on feature map such as filter. However with pytorch built-in function the implementation have to stack some op which make it memory inefficient. Therefore, I want to using c++ and cuda to write a custom functional. Can anyone give me a hint about the pipeline of customize functional using c++?
Or can I manipulate the tensor or variable in c++?  I need to write cuda code using c++.
Thanks!