duguyiqiu:

there are no graph nodes that require computing gradients.


replace:
self.linear = [[torch.nn.Linear(100, 2) for i in range(5)] for j in range(3)]

with
self.linear = nn.ModuleList([nn.ModuleList([nn.Linear(100,2) for i in range(5) ])for j in range(3)])

This makes your model parameters visible, so to say.