Many thanks, @tom, for the reply.
I see. Yes, it seems that I tricked myself with the indexing. But even if I defined y differently, I still get zeros. Let’s say that
m = torch.nn.Linear(3, 3)
y = m(torch.relu(m(torch.relu(m(x)))))

Now, print(duzdxyz) are not zeros