How can I set a tensor's gradient to be None in C++?

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() = {};