Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求增加 插入自定义算子 / 自由编辑算子 attribute的功能 #87

Open
xiguadong opened this issue Nov 8, 2023 · 5 comments · May be fixed by jamespeilunli/onnx-modifier#1
Open
Labels
help wanted Extra attention is needed

Comments

@xiguadong
Copy link

希望大佬能够支持,祝大佬bug少少,工资多多

@ZhangGe6
Copy link
Owner

ZhangGe6 commented Nov 8, 2023

@xiguadong 编辑算子attribute的功能已经支持了:https://github.com/ZhangGe6/onnx-modifier#Edit_attribute_of_nodes
对于”插入自定义算子“,可否进一步描述一下需求?

@xiguadong
Copy link
Author

@xiguadong 编辑算子attribute的功能已经支持了:https://github.com/ZhangGe6/onnx-modifier#Edit_attribute_of_nodes 对于”插入自定义算子“,可否进一步描述一下需求?

现在插入算子看起来都是在 onnx中已经定义好的,比如我有个自定义类型的Op xigua 想插入到模型中,应该是做不到的

@ZhangGe6 ZhangGe6 added the help wanted Extra attention is needed label Jan 17, 2024
@CrazyMustard-404
Copy link

CrazyMustard-404 commented Feb 29, 2024

同求!大佬加油!

@jamespeilunli jamespeilunli linked a pull request Apr 6, 2024 that will close this issue
@WuShaoa
Copy link

WuShaoa commented Dec 5, 2024

你好,我想咨询一下比如我想插入Reshape节点,但是直接在INPUTS部分的shape写常量保存的模型会报说我输入的常量不是某个节点输出的这种错误,请问除了自己增加Constant节点外有什么好的办法初始化Reshape这种有另外输入的节点吗?

一个会报错的例子:
image

一个正确的例子:
image

@WuShaoa
Copy link

WuShaoa commented Dec 5, 2024

你好,我想咨询一下比如我想插入Reshape节点,但是直接在INPUTS部分的shape写常量保存的模型会报说我输入的常量不是某个节点输出的这种错误,请问除了自己增加Constant节点外有什么好的办法初始化Reshape这种有另外输入的节点吗?

一个会报错的例子: image

一个正确的例子: image

oh,刚才查了一下文档。

我应该使用初始化时的initializer,因为不是list类型的属性。
我的问题已解决。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants