[Tiny fix] Super tiny fix mul_add naive forward bug (#18964)

This commit is contained in:
Xiaoyu Zhang
2026-02-18 16:18:43 +08:00
committed by GitHub
parent 513c12d23f
commit 390c154306

View File

@@ -23,7 +23,7 @@ class MulAdd(CustomOp):
num_frames = b.shape[1]
frame_seqlen = a.shape[1] // num_frames
return c + (
a.unflatten(dim=1, sizes=(num_frames, frame_seqlen)) * b
a.unflatten(dim=1, sizes=(num_frames, frame_seqlen)) * (k + b)
).flatten(1, 2)
else:
# b.shape: [batch_size, 1, inner_dim]