[Tiny fix] Super tiny fix mul_add naive forward bug (#18964)
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user