Skip to content

Commit

Permalink
fix rms norm when dy2statuc (#58868)
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardWooSJTU authored Nov 10, 2023
1 parent f55021f commit 0a3b495
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 0a3b495

Please sign in to comment.