onnx-modifier icon indicating copy to clipboard operation
onnx-modifier copied to clipboard

ConstantofShape去除此单个节点

Open alimagic opened this issue 3 years ago • 4 comments

Uploading image.png… 不能直接删除ConstantofShape单个节点,想请教如果要删除这个节点这种需要如何操作呐

alimagic avatar Jun 11 '22 08:06 alimagic

@alimagic 你好,上面的这张图片不能正常显示,可否重新上传一下?

ZhangGe6 avatar Jun 11 '22 09:06 ZhangGe6

image

alimagic avatar Jun 11 '22 13:06 alimagic

@alimagic 你好,上面的这张图片不能正常显示,可否重新上传一下?

好的,感谢回复,可能这个节点需要其他转化么

alimagic avatar Jun 11 '22 13:06 alimagic

ConstantOfShape后面Gather节点的输入名,改为ConstantOfShape前面的Concat节点的输出名,然后点击ConstantOfShape节点,将其删除即可。具体操作方法可参见readme的rename the name of node inputs/outputs link和delete/recover-nodes link

ZhangGe6 avatar Jun 11 '22 15:06 ZhangGe6