Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenCV
opencv_extra
提交
aa0d2350
O
opencv_extra
项目概览
OpenCV
/
opencv_extra
11 个月 前同步成功
通知
119
Star
882
Fork
1584
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
opencv_extra
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
aa0d2350
编写于
8月 30, 2022
作者:
A
Alexander Smorkalov
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #989 from zihaomu:qgemm_and_squeeze_opset13_onnximporter
上级
eafd7876
4893662a
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
33 addition
and
1 deletion
+33
-1
testdata/dnn/onnx/data/README.md
testdata/dnn/onnx/data/README.md
+22
-0
testdata/dnn/onnx/data/input_quantized_gemm.npy
testdata/dnn/onnx/data/input_quantized_gemm.npy
+0
-0
testdata/dnn/onnx/data/input_squeeze_axes_op13.npy
testdata/dnn/onnx/data/input_squeeze_axes_op13.npy
+0
-0
testdata/dnn/onnx/data/output_quantized_gemm.npy
testdata/dnn/onnx/data/output_quantized_gemm.npy
+0
-0
testdata/dnn/onnx/data/output_squeeze_axes_op13.npy
testdata/dnn/onnx/data/output_squeeze_axes_op13.npy
+0
-0
testdata/dnn/onnx/generate_onnx_models.py
testdata/dnn/onnx/generate_onnx_models.py
+1
-0
testdata/dnn/onnx/generate_quantized_onnx_models.py
testdata/dnn/onnx/generate_quantized_onnx_models.py
+10
-1
testdata/dnn/onnx/models/quantized_gemm.onnx
testdata/dnn/onnx/models/quantized_gemm.onnx
+0
-0
testdata/dnn/onnx/models/squeeze_axes_op13.onnx
testdata/dnn/onnx/models/squeeze_axes_op13.onnx
+0
-0
未找到文件。
testdata/dnn/onnx/data/README.md
0 → 100644
浏览文件 @
aa0d2350
### OpenCV: Open Source Computer Vision Library
This repository contains extra data for the OpenCV library.
#### Resources
*
Homepage: http://opencv.org
*
Docs: http://docs.opencv.org
*
Q&A forum: https://forum.opencv.org
*
previous forum (read only): http://answers.opencv.org
*
Issue tracking: https://github.com/opencv/opencv/issues
#### Contributing
Please read before starting work on a pull request: https://github.com/opencv/opencv/wiki/How_to_contribute
Summary of guidelines:
*
One pull request per issue;
*
Choose the right base branch;
*
Include tests and documentation;
*
Clean up "oops" commits before submitting;
*
Follow the coding style guide.
testdata/dnn/onnx/data/input_quantized_gemm.npy
0 → 100644
浏览文件 @
aa0d2350
文件已添加
testdata/dnn/onnx/data/input_squeeze_axes_op13.npy
0 → 100644
浏览文件 @
aa0d2350
文件已添加
testdata/dnn/onnx/data/output_quantized_gemm.npy
0 → 100644
浏览文件 @
aa0d2350
文件已添加
testdata/dnn/onnx/data/output_squeeze_axes_op13.npy
0 → 100644
浏览文件 @
aa0d2350
文件已添加
testdata/dnn/onnx/generate_onnx_models.py
浏览文件 @
aa0d2350
...
...
@@ -774,6 +774,7 @@ input = Variable(torch.randn(3, 1, 2, 4))
model
=
Squeeze
()
model
.
eval
()
save_data_and_model
(
"squeeze"
,
input
,
model
)
save_data_and_model
(
"squeeze_axes_op13"
,
input
,
model
,
version
=
13
)
class
Div
(
nn
.
Module
):
...
...
testdata/dnn/onnx/generate_quantized_onnx_models.py
浏览文件 @
aa0d2350
...
...
@@ -269,4 +269,13 @@ model = nn.Sequential(
nn
.
Linear
(
84
,
10
)
)
input
=
Variable
(
torch
.
randn
(
1
,
3
,
32
,
32
))
quantize_and_save_model
(
"quantized_constant"
,
input
,
model
,
wt_type
=
"int8"
,
per_channel
=
True
)
\ No newline at end of file
quantize_and_save_model
(
"quantized_constant"
,
input
,
model
,
wt_type
=
"int8"
,
per_channel
=
True
)
class
Gemm
(
nn
.
Module
):
def
forward
(
self
,
x
):
mat1
=
torch
.
ones
(
3
,
3
)
return
torch
.
mm
(
x
,
mat1
)
input
=
Variable
(
torch
.
randn
(
1
,
3
))
model
=
Gemm
()
quantize_and_save_model
(
"quantized_gemm"
,
input
,
model
,
act_type
=
"int8"
,
wt_type
=
"int8"
,
per_channel
=
False
)
\ No newline at end of file
testdata/dnn/onnx/models/quantized_gemm.onnx
0 → 100644
浏览文件 @
aa0d2350
文件已添加
testdata/dnn/onnx/models/squeeze_axes_op13.onnx
0 → 100644
浏览文件 @
aa0d2350
文件已添加
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录