I saw the tutorial for writing a custom function with double backward support: Double Backward with Custom Functions — PyTorch Tutorials 1.10.1+cu102 documentation .However, is there a tutorial for writing a function in C++ that is later bound into python?
Within this tutorial it shows how to define a
torch.autograd.Function function with C++ forward and backward methods that are binded in python from C++ but there’s no tutorial on defining the entire function within C++? Is there a tutorial I’ve missed? (With a way to define a C++ function with a DoubleBackward)