本文共 208 字,大约阅读时间需要 1 分钟。
import torchfrom test01 import Netmodel = Net()model.load_state_dict(torch.load(r"C:\Users\admin\Desktop\test1\w.pkl"))print(model.fc1.weight)print('/')print(model.fc2.weight)print('/')print(model.fc3.weight)
转载地址:http://bhpi.baihongyu.com/