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
61073099
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "ed6c8d37f402847e65510a81e79b483c68733fe4"
Unverified
Commit
61073099
authored
Nov 08, 2020
by
Manav Rathod
Committed by
GitHub
Nov 08, 2020
Browse files
fixed default labels for QA model (#8399)
parent
0b02489b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/trainer.py
src/transformers/trainer.py
+1
-1
No files found.
src/transformers/trainer.py
View file @
61073099
...
@@ -328,7 +328,7 @@ class Trainer:
...
@@ -328,7 +328,7 @@ class Trainer:
self
.
hp_search_backend
=
None
self
.
hp_search_backend
=
None
self
.
use_tune_checkpoints
=
False
self
.
use_tune_checkpoints
=
False
default_label_names
=
(
default_label_names
=
(
[
"start_positions, end_positions"
]
[
"start_positions
"
,
"
end_positions"
]
if
type
(
self
.
model
)
in
MODEL_FOR_QUESTION_ANSWERING_MAPPING
.
values
()
if
type
(
self
.
model
)
in
MODEL_FOR_QUESTION_ANSWERING_MAPPING
.
values
()
else
[
"labels"
]
else
[
"labels"
]
)
)
...
...
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