Skip to content

remove_unused_nodes: removing inputs #2211

Closed
@leshabirukov

Description

@leshabirukov

Hello again!
While processing some net, I ended up with strange picture with hanging inputs like this:

Image

It appears, where was initializers dubbed as inputs in the "some net". After rewriting, those become unused, and call to remove_unused_nodes removed initializers, but keeped inputs.
I don't fully understand what 'initializers as inputs' mean, but it looks rather legal, and Netron and onnxruntime.checker accepts them. So, it is probably make sense remove unused inputs also.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions