Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
8bb2c387
Unverified
Commit
8bb2c387
authored
Jul 01, 2022
by
Yih-Dar
Committed by
GitHub
Jul 01, 2022
Browse files
Fix FlaxBigBirdEmbeddings (#17842)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
b68d408f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/big_bird/modeling_flax_big_bird.py
src/transformers/models/big_bird/modeling_flax_big_bird.py
+1
-1
No files found.
src/transformers/models/big_bird/modeling_flax_big_bird.py
View file @
8bb2c387
...
@@ -229,8 +229,8 @@ class FlaxBigBirdEmbeddings(nn.Module):
...
@@ -229,8 +229,8 @@ class FlaxBigBirdEmbeddings(nn.Module):
hidden_states
=
inputs_embeds
+
token_type_embeddings
+
position_embeds
hidden_states
=
inputs_embeds
+
token_type_embeddings
+
position_embeds
# Layer Norm
# Layer Norm
hidden_states
=
self
.
LayerNorm
(
hidden_states
)
hidden_states
=
self
.
dropout
(
hidden_states
,
deterministic
=
deterministic
)
hidden_states
=
self
.
dropout
(
hidden_states
,
deterministic
=
deterministic
)
hidden_states
=
self
.
LayerNorm
(
hidden_states
)
return
hidden_states
return
hidden_states
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment