Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
58d8795d
Unverified
Commit
58d8795d
authored
Apr 22, 2021
by
Patrick von Platen
Committed by
GitHub
Apr 22, 2021
Browse files
[Flax] Correct typo (#11374)
* finish * fix copy
parent
880154d2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/transformers/models/bert/modeling_flax_bert.py
src/transformers/models/bert/modeling_flax_bert.py
+1
-1
src/transformers/models/roberta/modeling_flax_roberta.py
src/transformers/models/roberta/modeling_flax_roberta.py
+1
-1
No files found.
src/transformers/models/bert/modeling_flax_bert.py
View file @
58d8795d
...
@@ -252,7 +252,7 @@ class FlaxBertSelfAttention(nn.Module):
...
@@ -252,7 +252,7 @@ class FlaxBertSelfAttention(nn.Module):
attention_bias
=
None
attention_bias
=
None
dropout_rng
=
None
dropout_rng
=
None
if
not
deterministic
and
self
.
dropout_
rate
>
0.0
:
if
not
deterministic
and
self
.
config
.
attention_probs_
dropout_
prob
>
0.0
:
dropout_rng
=
self
.
make_rng
(
"dropout"
)
dropout_rng
=
self
.
make_rng
(
"dropout"
)
attn_output
=
dot_product_attention
(
attn_output
=
dot_product_attention
(
...
...
src/transformers/models/roberta/modeling_flax_roberta.py
View file @
58d8795d
...
@@ -271,7 +271,7 @@ class FlaxRobertaSelfAttention(nn.Module):
...
@@ -271,7 +271,7 @@ class FlaxRobertaSelfAttention(nn.Module):
attention_bias
=
None
attention_bias
=
None
dropout_rng
=
None
dropout_rng
=
None
if
not
deterministic
and
self
.
dropout_
rate
>
0.0
:
if
not
deterministic
and
self
.
config
.
attention_probs_
dropout_
prob
>
0.0
:
dropout_rng
=
self
.
make_rng
(
"dropout"
)
dropout_rng
=
self
.
make_rng
(
"dropout"
)
attn_output
=
dot_product_attention
(
attn_output
=
dot_product_attention
(
...
...
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