博客
关于我
读pkl文件,并打印出每行的权重
阅读量:192 次
发布时间:2019-02-28

本文共 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/

你可能感兴趣的文章
nginx net::ERR_ABORTED 403 (Forbidden)
查看>>
vue中处理过内存泄露处理方法
查看>>
Nginx RTMP 模块使用指南
查看>>
Nginx SSL 性能调优
查看>>
nginx ssl域名配置
查看>>
Nginx SSL私有证书自签,且反代80端口
查看>>
Nginx upstream性能优化
查看>>
Nginx 中解决跨域问题
查看>>
nginx 代理解决跨域
查看>>
Nginx 做负载均衡的几种轮询策略分析
查看>>