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
bdfe21ab
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "a4db4e303208a5b7b4ce1564301d77e9b74b01d9"
Commit
bdfe21ab
authored
Nov 26, 2019
by
Julien Chaumond
Committed by
Lysandre Debut
Nov 26, 2019
Browse files
Change param order for consistency
parent
c536c2a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
transformers/modeling_albert.py
transformers/modeling_albert.py
+2
-2
No files found.
transformers/modeling_albert.py
View file @
bdfe21ab
...
@@ -571,8 +571,8 @@ class AlbertForMaskedLM(AlbertPreTrainedModel):
...
@@ -571,8 +571,8 @@ class AlbertForMaskedLM(AlbertPreTrainedModel):
def
get_output_embeddings
(
self
):
def
get_output_embeddings
(
self
):
return
self
.
predictions
.
decoder
return
self
.
predictions
.
decoder
def
forward
(
self
,
input_ids
=
None
,
attention_mask
=
None
,
token_type_ids
=
None
,
position_ids
=
None
,
head_mask
=
None
,
def
forward
(
self
,
input_ids
=
None
,
attention_mask
=
None
,
token_type_ids
=
None
,
position_ids
=
None
,
head_mask
=
None
,
inputs_embeds
=
None
,
masked_lm_labels
=
None
,
inputs_embeds
=
None
):
masked_lm_labels
=
None
):
outputs
=
self
.
albert
(
outputs
=
self
.
albert
(
input_ids
=
input_ids
,
input_ids
=
input_ids
,
attention_mask
=
attention_mask
,
attention_mask
=
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