-
Notifications
You must be signed in to change notification settings - Fork 539
: constant fold None #10762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
: constant fold None #10762
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/10762
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New FailuresAs of commit ce7b6f9 with merge base d25ce54 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D74350331 |
eb21417
to
f8c24fe
Compare
Summary: Constant folding should fold 'None' and consider it a constant This goes with D74350331 and D74349918 but keeping things separate Differential Revision: D74350331
Summary: Constant folding should fold 'None' and consider it a constant This goes with D74350331 and D74349918 but keeping things separate Differential Revision: D74350331
f8c24fe
to
8cb11d8
Compare
This pull request was exported from Phabricator. Differential Revision: D74350331 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D74350331 |
Summary: Pull Request resolved: pytorch#10762 Constant folding should fold 'None' and consider it a constant This goes with D74350331 and D74349918 but keeping things separate Differential Revision: D74350331
8cb11d8
to
d37c47d
Compare
Summary: Constant folding should fold 'None' and consider it a constant This goes with D74350331 and D74349918 but keeping things separate Differential Revision: D74350331
d37c47d
to
bee0a04
Compare
This pull request was exported from Phabricator. Differential Revision: D74350331 |
@@ -61,6 +61,8 @@ def is_const( | |||
) | |||
elif isinstance(arg, _PRIMITIVE_TYPES): | |||
return True | |||
elif arg is None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was the problem before that const prop would skip nodes with None in the args?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I think the issue is None is not a constant, and so if an op has args that include constants and None, it doesn't get constant folded.
bee0a04
to
e11d813
Compare
Summary: Constant folding should fold 'None' and consider it a constant This goes with D74280168 and D74349918 but keeping things separate Differential Revision: D74350331
This pull request was exported from Phabricator. Differential Revision: D74350331 |
Summary: Constant folding should fold 'None' and consider it a constant This goes with D74280168 and D74349918 but keeping things separate Reviewed By: metascroy Differential Revision: D74350331
e11d813
to
ce7b6f9
Compare
This pull request was exported from Phabricator. Differential Revision: D74350331 |
Differential Revision: D74350331 Pull Request resolved: pytorch#10762
Summary:
Constant folding should fold 'None' and consider it a constant
This goes with D74350331 and D74349918 but keeping things separate
Differential Revision: D74350331