Skip to content

Conversation

tritolol
Copy link
Contributor

Fixes #2538.

Changed remove_getattr_nodes() such that it adds a new constant op if it encounters a getattr op that is part of the graph's output. Before it raised an error wich caused some networks not to convert.

Added a unit test for the scenario.

@tritolol tritolol force-pushed the fix-immediate-output-getattr branch from 092ebff to 7eee9a9 Compare June 12, 2025 06:45
@TobyRoseman
Copy link
Collaborator

@tritolol thanks for the pull request. I apologize that no one seems to have looked at this. Please rebase this change on top of tip of main. Then I will kick off a CI run.

@tritolol tritolol force-pushed the fix-immediate-output-getattr branch from 600f0d8 to 5d51d4f Compare August 7, 2025 07:46
@tritolol
Copy link
Contributor Author

@TobyRoseman I'm not sure if you are automatically notified, so just in case you are not: The rebase is done.

@TobyRoseman
Copy link
Collaborator

@tritolol
Copy link
Contributor Author

@TobyRoseman are any of the failing tests related to this PR? There is no indication of that for me.

@TobyRoseman
Copy link
Collaborator

@tritolol - I don't think those failures are related to this change. Please rebase this change on top the latest main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

remove_getattr_nodes torchIR pass fails with constant model outputs

2 participants