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
c8e40d6f
Unverified
Commit
c8e40d6f
authored
Sep 16, 2022
by
Younes Belkada
Committed by
GitHub
Sep 16, 2022
Browse files
fix `use_cache` (#19060)
- set `use_cache` to `True` for consistency with other `transformers` models
parent
0b5c7e48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/trocr/configuration_trocr.py
src/transformers/models/trocr/configuration_trocr.py
+1
-1
No files found.
src/transformers/models/trocr/configuration_trocr.py
View file @
c8e40d6f
...
@@ -117,7 +117,7 @@ class TrOCRConfig(PretrainedConfig):
...
@@ -117,7 +117,7 @@ class TrOCRConfig(PretrainedConfig):
classifier_dropout
=
0.0
,
classifier_dropout
=
0.0
,
init_std
=
0.02
,
init_std
=
0.02
,
decoder_layerdrop
=
0.0
,
decoder_layerdrop
=
0.0
,
use_cache
=
Fals
e
,
use_cache
=
Tru
e
,
scale_embedding
=
False
,
scale_embedding
=
False
,
use_learned_position_embeddings
=
True
,
use_learned_position_embeddings
=
True
,
layernorm_embedding
=
True
,
layernorm_embedding
=
True
,
...
...
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