I try like this , it didn’t  report bug, but the value of parameter is not changed.

屏幕快照 2019-05-01 下午3.42.40.png1832×538 70.9 KB

But using torch.nn.init.xavier_normal_(model_0.state_dict()[‘classifier.weight’]) , it works, why?