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
c836f772
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "3028b20a71d566f67d4ef414e4aa32cb3eb53d64"
Unverified
Commit
c836f772
authored
Feb 11, 2023
by
Sylvain Gugger
Browse files
Fix quality on main (ruff release)
parent
75a208ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/electra/modeling_flax_electra.py
src/transformers/models/electra/modeling_flax_electra.py
+1
-1
No files found.
src/transformers/models/electra/modeling_flax_electra.py
View file @
c836f772
...
@@ -1213,7 +1213,7 @@ class FlaxElectraSequenceSummary(nn.Module):
...
@@ -1213,7 +1213,7 @@ class FlaxElectraSequenceSummary(nn.Module):
self
.
summary
=
nn
.
Dense
(
num_classes
,
dtype
=
self
.
dtype
)
self
.
summary
=
nn
.
Dense
(
num_classes
,
dtype
=
self
.
dtype
)
activation_string
=
getattr
(
self
.
config
,
"summary_activation"
,
None
)
activation_string
=
getattr
(
self
.
config
,
"summary_activation"
,
None
)
self
.
activation
=
ACT2FN
[
activation_string
]
if
activation_string
else
lambda
x
:
x
self
.
activation
=
ACT2FN
[
activation_string
]
if
activation_string
else
lambda
x
:
x
# noqa F407
self
.
first_dropout
=
identity
self
.
first_dropout
=
identity
if
hasattr
(
self
.
config
,
"summary_first_dropout"
)
and
self
.
config
.
summary_first_dropout
>
0
:
if
hasattr
(
self
.
config
,
"summary_first_dropout"
)
and
self
.
config
.
summary_first_dropout
>
0
:
...
...
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