The parameters don’t have any grad_fn, as they are leaf nodes, so you would need to check the forward activations either directly in the forward method, e.g. via:
def forward(self, x):
    x = self.layer(x)
    print(x.grad_fn)
    ...

or via forward hooks.