Hi, thank you for your advice!
I got another question about clamping, if static Tensor do have requires_grad=True and clamping tensor cause errors like “CUDA error: an illegal memory access was encountered”.
Do you have any ideas about this?  Thank you ! I’m sorry if this is an unrelated issue!