Skip to content

Commit

Permalink
fix rms norm when dy2statuc (PaddlePaddle#58868)
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardWooSJTU authored Nov 10, 2023
1 parent ff72c36 commit 034ae26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/incubate/nn/functional/fused_rms_norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def fused_rms_norm(
outputs_dict['residual_out'] = residual_out

inputs = {'x': x, 'norm_weight': norm_weight}
if norm_bias:
if norm_bias is not None:
inputs['norm_bias'] = norm_bias
if residual is not None:
inputs['residual'] = residual
Expand Down

0 comments on commit 034ae26

Please sign in to comment.