In python, I can do p.grad = None, but I am not sure what’s the right way to do that in C++. Could someone help? Thanks!
It turns out i can just use p.grad() = {};
In python, I can do p.grad = None, but I am not sure what’s the right way to do that in C++. Could someone help? Thanks!
It turns out i can just use p.grad() = {};