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
847d3703
Commit
847d3703
authored
Mar 09, 2020
by
Patrick von Platen
Browse files
fix typo
parent
3e624c64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/configuration_utils.py
src/transformers/configuration_utils.py
+1
-1
No files found.
src/transformers/configuration_utils.py
View file @
847d3703
...
...
@@ -70,7 +70,7 @@ class PretrainedConfig(object):
# Parameters for sequence generation
self
.
max_length
=
kwargs
.
pop
(
"max_length"
,
20
)
self
.
do_sample
=
kwargs
.
pop
(
"do_sample"
,
False
)
self
.
do_sample
=
kwargs
.
pop
(
"early_stopping"
,
False
)
self
.
early_stopping
=
kwargs
.
pop
(
"early_stopping"
,
False
)
self
.
num_beams
=
kwargs
.
pop
(
"num_beams"
,
1
)
self
.
temperature
=
kwargs
.
pop
(
"temperature"
,
1.0
)
self
.
top_k
=
kwargs
.
pop
(
"top_k"
,
50
)
...
...
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