Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zrr1999 committed Feb 28, 2024
1 parent 941aec9 commit c5c3a99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/incubate/nn/functional/fused_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def fused_bias_dropout_residual_layer_norm(
x.shape[len(x.shape) - 1] == ln_bias.shape[0]
), "The dim of ln_bias must equal to the last dim of x."

if in_dynamic_mode():
if in_dynamic_or_pir_mode():
if default_main_program().random_seed != 0:
seed = default_main_program().random_seed
(
Expand Down

0 comments on commit c5c3a99

Please sign in to comment.