: 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 |
| ) | ||
| elif isinstance(arg, _PRIMITIVE_TYPES): | ||
| return True | ||
| elif arg is None: |
There was a problem hiding this comment.
was the problem before that const prop would skip nodes with None in the args?
There was a problem hiding this comment.
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 |
Summary:
Constant folding should fold 'None' and consider it a constant
This goes with D74350331 and D74349918 but keeping things separate
Differential Revision: D74350331