Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix immediate output getattr#2541

Open
tritolol wants to merge 3 commits intoapple:main from
tritolol:fix-immediate-output-getattr
Open

Fix immediate output getattr #2541
tritolol wants to merge 3 commits intoapple:main from
tritolol:fix-immediate-output-getattr

Conversation

@tritolol
Copy link
Contributor

@tritolol tritolol commented Jun 12, 2025

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
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
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.

Copy link
Collaborator

Copy link
Contributor Author

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

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

remove_getattr_nodes torchIR pass fails with constant model outputs

Comments

AltStyle によって変換されたページ (->オリジナル) /