Hi I use net2.weight = y[0][0].reshape(-1,1) raises Error say  cannot assign 'torch.FloatTensor' as parameter 'weight' (torch.nn.Parameter or None expected)
So I switch to net2.weight = torch.nn.Parameter(y[0][0].reshape(-1,1)) but still doesn’t update the value