aredd-cmu:

gradient_fn


Hay, can you please explain more what does it mean? I also want to make sure my gradient chain is correct.
Should I check for each layer if it has the grad_fn or not? Will it be enough to make it sure?
UPDATE: Nevermind, now I understand what does it mean. For each object in our model, we need to check if it has the attribute named ‘grad_fn’. That will make sure the gradient chain is not broken.