Skip to content

Fuse per-channel Mul + Add into BatchNormalization - #1457

Merged
robertknight merged 1 commit into
mainfrom
batch-norm-fusion
Aug 27, 2026
Merged

Fuse per-channel Mul + Add into BatchNormalization#1457
robertknight merged 1 commit into
mainfrom
batch-norm-fusion

Conversation

@robertknight

@robertknight robertknight commented Aug 27, 2026

Copy link
Copy Markdown
Owner

Fuse Add(Mul(X, scale), bias) into BatchNormalization where scale and bias have shape (1, C, 1, 1) and X has shape (B, C, H) or (B, C, H, W).

Tested with the model from https://huggingface.co/docling-project/docling-layout-heron-onnx.

Fuse `Add(Mul(X, scale), bias)` into `BatchNormalization` where `scale` and
`bias` have shape `(1, C, 1, 1)` and `X` has shape `(B, C, H)` or `(B, C, H,
W)`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@robertknight
robertknight merged commit e860750 into main Aug 27, 2026
3 checks passed
@robertknight
robertknight deleted the batch-norm-fusion branch August 27, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant