Skip to content

Commit

Permalink
Fix FlaxBigBirdEmbeddings (huggingface#17842)
Browse files Browse the repository at this point in the history
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
  • Loading branch information
2 people authored and viclzhu committed Jul 18, 2022
1 parent 711a4f8 commit d232d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/models/big_bird/modeling_flax_big_bird.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ def __call__(self, input_ids, token_type_ids, position_ids, attention_mask, dete
hidden_states = inputs_embeds + token_type_embeddings + position_embeds

# Layer Norm
hidden_states = self.LayerNorm(hidden_states)
hidden_states = self.dropout(hidden_states, deterministic=deterministic)
hidden_states = self.LayerNorm(hidden_states)
return hidden_states


Expand Down

0 comments on commit d232d4a

Please sign in to comment.