没有合适的资源?快使用搜索试试~ 我知道了~
onnx-simplifier:简化您的Onnx模型
共12个文件
py:4个
png:3个
md:2个
需积分: 47 29 下载量 12 浏览量
2021-04-29
03:44:53
上传
评论 1
收藏 151KB ZIP 举报
温馨提示
ONNX简化器 ONNX很棒,但有时太复杂了。 背景 有一天,我想将以下简单的重塑操作导出到ONNX: import torch class JustReshape ( torch . nn . Module ): def __init__ ( self ): super ( JustReshape , self ). __init__ () def forward ( self , x ): return x . view (( x . shape [ 0 ], x . shape [ 1 ], x . shape [ 3 ], x . shape [ 2 ])) net = JustReshape () model_name = 'just_reshape.onnx' dummy_input = torch . randn ( 2 ,
资源推荐
资源详情
资源评论
收起资源包目录
onnx-simplifier-master.zip (12个子文件)
onnx-simplifier-master
setup.py 1KB
.gitignore 2KB
.travis.yml 358B
LICENSE 11KB
.github
ISSUE_TEMPLATE
bug_report.md 311B
onnxsim
__init__.py 68B
onnx_simplifier.py 19KB
__main__.py 5KB
README.md 3KB
imgs
complicated_reshape.png 26KB
simple_reshape.png 5KB
comparison.png 111KB
共 12 条
- 1
资源评论
yilinwang
- 粉丝: 13
- 资源: 4617
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功