Hi,
You can’t access it with .grad.
You can use var.register_hook(fn) (doc here 6). Where fn is a function that will be given as input the gradient of var. You can then use this function to monitor this gradient or store it in a global variable to have it available somewhere else in your program.