Skip to content

[Passes] Add identity fix #267

@justinchuby

Description

@justinchuby

Create a pass that adds an Identity node if an input of a graph is directly set as the output of the graph. This will turn an invalid graph into a valid one. The value name of the output should be preserved.

Ref: pytorch/pytorch#167848

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions