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
b8fde438
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "3c24e4bef1d7babbd69ecc95a8974b5a1c7171f6"
Commit
b8fde438
authored
Aug 19, 2019
by
erenup
Browse files
a coding bug
parent
47e9aea0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pytorch_transformers/modeling_xlnet.py
pytorch_transformers/modeling_xlnet.py
+1
-1
No files found.
pytorch_transformers/modeling_xlnet.py
View file @
b8fde438
...
...
@@ -1164,7 +1164,7 @@ class XLNetForMultipleChoice(XLNetPreTrainedModel):
flat_input_ids
=
input_ids
.
view
(
-
1
,
input_ids
.
size
(
-
1
))
flat_token_type_ids
=
token_type_ids
.
view
(
-
1
,
token_type_ids
.
size
(
-
1
))
if
token_type_ids
is
not
None
else
None
flat_attention_mask
=
attention_mask
.
view
(
-
1
,
attention_mask
.
size
(
-
1
))
if
attention_mask
is
not
None
else
None
flat_input_mask
=
input_mask
.
view
(
-
1
,
input_mask
.
size
(
-
1
)
if
input_mask
is
not
None
else
None
)
flat_input_mask
=
input_mask
.
view
(
-
1
,
input_mask
.
size
(
-
1
)
)
if
input_mask
is
not
None
else
None
transformer_outputs
=
self
.
transformer
(
flat_input_ids
,
token_type_ids
=
flat_token_type_ids
,
input_mask
=
flat_input_mask
,
attention_mask
=
flat_attention_mask
,
...
...
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