Skip to content

Commit

Permalink
Fix quality on main (ruff release)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgugger committed Feb 12, 2023
1 parent 75a208e commit c836f77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/models/electra/modeling_flax_electra.py
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ def setup(self):
self.summary = nn.Dense(num_classes, dtype=self.dtype)

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
if hasattr(self.config, "summary_first_dropout") and self.config.summary_first_dropout > 0:
Expand Down

0 comments on commit c836f77

Please sign in to comment.