Skip to content

Commit

Permalink
[DeltaNet] fix a bug of recurrent mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sustcsonglin authored Oct 1, 2024
1 parent 376ac58 commit aef77f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fla/ops/delta_rule/fused_recurrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def forward(ctx, q, k, v, beta, scale=None, initial_state=None, output_final_sta
num_warps=num_warps,
num_stages=num_stages,
)
o = o.squeeze(1)
o = o.squeeze(0)
ctx.save_for_backward(q, k, v, beta, initial_state)
ctx.scale = scale
return o, final_state
Expand Down

0 comments on commit aef77f3

Please sign in to comment.