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
149dc376
Commit
149dc376
authored
Dec 19, 2019
by
thomwolf
Browse files
fix tests
parent
407093b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
transformers/configuration_utils.py
transformers/configuration_utils.py
+0
-2
No files found.
transformers/configuration_utils.py
View file @
149dc376
...
...
@@ -57,8 +57,6 @@ class PretrainedConfig(object):
self
.
use_bfloat16
=
kwargs
.
pop
(
'use_bfloat16'
,
False
)
self
.
pruned_heads
=
kwargs
.
pop
(
'pruned_heads'
,
{})
self
.
is_decoder
=
kwargs
.
pop
(
'is_decoder'
,
False
)
self
.
id2label
=
kwargs
.
pop
(
'id2label'
,
{
i
:
'LABEL_{}'
.
format
(
i
)
for
i
in
range
(
self
.
num_labels
)})
self
.
label2id
=
kwargs
.
pop
(
'label2id'
,
dict
(
zip
(
self
.
id2label
.
values
(),
self
.
id2label
.
keys
())))
# Fine-tuning task arguments
self
.
finetuning_task
=
kwargs
.
pop
(
'finetuning_task'
,
None
)
...
...
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