Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenCV
opencv_extra
提交
daaab3ad
O
opencv_extra
项目概览
OpenCV
/
opencv_extra
12 个月 前同步成功
通知
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,发现更多精彩内容 >>
未验证
提交
daaab3ad
编写于
5月 23, 2022
作者:
A
Alexander Alekhin
提交者:
GitHub
5月 23, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #968 from rogday:revert_renaming
Add output registration test
上级
ebd991b1
703e2f5d
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
38 addition
and
0 deletion
+38
-0
testdata/dnn/onnx/data/input_output_registration_0.npy
testdata/dnn/onnx/data/input_output_registration_0.npy
+0
-0
testdata/dnn/onnx/data/input_output_registration_1.npy
testdata/dnn/onnx/data/input_output_registration_1.npy
+0
-0
testdata/dnn/onnx/data/output_output_registration.npy
testdata/dnn/onnx/data/output_output_registration.npy
+0
-0
testdata/dnn/onnx/generate_onnx_models.py
testdata/dnn/onnx/generate_onnx_models.py
+16
-0
testdata/dnn/onnx/models/output_registration.onnx
testdata/dnn/onnx/models/output_registration.onnx
+22
-0
未找到文件。
testdata/dnn/onnx/data/input_output_registration_0.npy
0 → 100644
浏览文件 @
daaab3ad
文件已添加
testdata/dnn/onnx/data/input_output_registration_1.npy
0 → 100644
浏览文件 @
daaab3ad
文件已添加
testdata/dnn/onnx/data/output_output_registration.npy
0 → 100644
浏览文件 @
daaab3ad
文件已添加
testdata/dnn/onnx/generate_onnx_models.py
浏览文件 @
daaab3ad
...
...
@@ -1650,3 +1650,19 @@ models_files = os.path.join("models", name + ".onnx")
onnx
.
save
(
model
,
models_files
)
########################## const / x ##########################
class
OutputRegistration
(
nn
.
Module
):
def
__init__
(
self
):
super
(
OutputRegistration
,
self
).
__init__
()
self
.
c
=
torch
.
randn
(
2
,
2
)
def
forward
(
self
,
a
,
b
):
return
(
a
+
b
)
+
self
.
c
a
=
Variable
(
torch
.
randn
(
2
,
2
))
b
=
Variable
(
torch
.
randn
(
2
,
2
))
model
=
OutputRegistration
()
save_data_and_model_multy_inputs
(
'output_registration'
,
model
,
a
,
b
)
model
=
onnx
.
load
(
'models/output_registration.onnx'
)
model
.
graph
.
node
[
0
].
name
=
model
.
graph
.
output
[
0
].
name
onnx
.
save
(
model
,
'models/output_registration.onnx'
)
\ No newline at end of file
testdata/dnn/onnx/models/output_registration.onnx
0 → 100644
浏览文件 @
daaab3ad
pytorch1.9:
0
124"Add
?3
Constant_1"Constant*$
value*J˿D>A?m(>
2
34Add_2"Addtorch-jit-exportZ
0
Z
1
b
4
B
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录