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
f9c5317d
Commit
f9c5317d
authored
Dec 21, 2019
by
Aymeric Augustin
Browse files
Fix E265 flake8 warning (x1).
parent
28e608a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/contrib/run_swag.py
examples/contrib/run_swag.py
+1
-1
No files found.
examples/contrib/run_swag.py
View file @
f9c5317d
...
@@ -356,7 +356,7 @@ def train(args, train_dataset, model, tokenizer):
...
@@ -356,7 +356,7 @@ def train(args, train_dataset, model, tokenizer):
inputs
=
{
inputs
=
{
"input_ids"
:
batch
[
0
],
"input_ids"
:
batch
[
0
],
"attention_mask"
:
batch
[
1
],
"attention_mask"
:
batch
[
1
],
#'token_type_ids': None if args.model_type == 'xlm' else batch[2],
#
'token_type_ids': None if args.model_type == 'xlm' else batch[2],
"token_type_ids"
:
batch
[
2
],
"token_type_ids"
:
batch
[
2
],
"labels"
:
batch
[
3
],
"labels"
:
batch
[
3
],
}
}
...
...
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