I am trying to make a custom C++ extension using this 4 tutorial, but I am getting an error when I am trying to compile the code. I am basically trying to call the grad function in here 4. I am getting the following error…
error: ‘grad’ is not a member of ‘torch::autograd’
return torch::autograd::grad(outputs, inputs, grad_outputs, retain_graph, create_graph, allow_unused);
Any help will be appreciate! Thank you.