[WIP] Add standalone batch norm support via depthwise conv conversion.#11844
[WIP] Add standalone batch norm support via depthwise conv conversion.#11844ayushrajdahal wants to merge 1 commit intopytorch:mainfrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/11844
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 3a62512 with merge base daebcde ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
|
Hi @penknife6153, I worked on the linear fused batchnorm PR and noticed some overlap between our work. Let me know if I can help with anything! |
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
2 similar comments
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
Summary
Implement ConvertBatchNormToDepthwiseConvPass to handle standalone batch normalization operations that cannot be fused with preceding convolutions.
Fixes #11586
Key changes:
Uses mathematical equivalence:
conv_weight = bn_weight / sqrt(bn_var + eps)
conv_bias = bn_bias - bn_mean * conv_weight
Test plan