Thank you for your direction! Then I reread the code, and found that those parameters which could be None could’t passing through the net. But here my parameters ‘bias’ has been put into net, so it should be tensor.