Support passthrough ops for batch norm fusion (#4776) - #4776
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/4776
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit a427d97 with merge base fa7b7eb ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@DrJessop has exported this pull request. If you are a Meta employee, you can view the originating Diff in D116357358. |
Summary: Prior to this diff, the fuse batch norm with conv function in prepare only supported conv immediately followed by batch norm. Now, we also support fusing through a non-channel slice. We may consider adding more passthrough ops when needed. Differential Revision: D116357358
d11b5e6 to
2097763
Compare
|
@claude review |
|
Claude finished @vkuzo's task in 1m 53s —— View job Claude Code Review
Review SummaryNice, well-scoped change. The core idea — allowing conv→BN fusion to "see through" a spatial (non-channel) slice and an optional The three new tests cover the important cases well: the positive spatial-slice case, the rejected channel slice, and the rejected shared-conv-output case. Correctness — looks good
Suggestions (non-blocking)
Test nits (optional)
Overall this is a clean, correct, and well-tested addition. The suggestions above are all optional polish. |
|
lgtm. Could you make sure OSS CI is green, especially the |
2097763 to
bd76bc6
Compare
Summary: Prior to this diff, the fuse batch norm with conv function in prepare only supported conv immediately followed by batch norm. Now, we also support fusing through a non-channel slice. We may consider adding more passthrough ops when needed. Differential Revision: D116357358
Summary: Prior to this diff, the fuse batch norm with conv function in prepare only supported conv immediately followed by batch norm. Now, we also support fusing through a non-channel slice. We may consider adding more passthrough ops when needed. Differential Revision: D116357358
bd76bc6 to
a427d97
Compare
|
https://github.com/pytorch/ao/actions/runs/32752092932/job/97511173340?pr=4776 Keeps failing with "Node 20 is being deprecated", which is unrelated to my diff. Any thoughts on how to move forward to get a green CI? |
Summary:
Prior to this diff, the fuse batch norm with conv function in prepare only supported conv immediately followed by batch norm. Now, we also support fusing through a non-channel slice. We may consider adding more passthrough ops when needed.
Differential Revision: D116357358