Consider I have following codes
w1 = nn.Parameter(torch.log(torch.Tensor([1.]))).to(device)
w2 = nn.Parameter(torch.log(torch.Tensor([1.]))).to(device)

y = w2 * x
>>> y 
tensor([0.], grad_fn=<MulBackward0>)

Clearly y only depends on w2 not w1. How do I know when the network is much more complicated?