Skip to content

Commit

Permalink
remove unnecessary pass
Browse files Browse the repository at this point in the history
  • Loading branch information
RedContritio committed Jan 30, 2023
1 parent e51fc63 commit 54e17ed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/paddle/incubate/nn/functional/fused_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,9 +615,7 @@ def fused_multi_head_attention(
'downgrade_in_infer' if mode == 'downscale_in_infer' else mode
) # semantic transfer

if x.ndim == 3:
pass
else:
if x.ndim != 3:
raise ValueError(
f"The rank of the x should be 3, but received {x.ndim}."
)
Expand Down

0 comments on commit 54e17ed

Please sign in to comment.