Thanks for the explanation!



 ptrblck:

so you could check the grad_fn attributes of previous activations and check, if any yields a None.


How can I do that?
When checking the parameters like so:
for p in model.parameters():
    print(p.grad_fn)

all I get is None.