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
ee60840e
"vscode:/vscode.git/clone" did not exist on "e703e923cab5f15c9133df2b854a66fc9cf7481b"
Unverified
Commit
ee60840e
authored
Feb 25, 2020
by
Sandro Cavallari
Committed by
GitHub
Feb 24, 2020
Browse files
fix _update_memory fn call in transformer-xl (#2971)
parent
6a50d501
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/modeling_transfo_xl.py
src/transformers/modeling_transfo_xl.py
+1
-1
No files found.
src/transformers/modeling_transfo_xl.py
View file @
ee60840e
...
...
@@ -645,7 +645,7 @@ class TransfoXLModel(TransfoXLPreTrainedModel):
else
:
return
None
def
_update_mems
(
self
,
hids
,
mems
,
q
len
,
m
len
):
def
_update_mems
(
self
,
hids
,
mems
,
m
len
,
q
len
):
# does not deal with None
if
mems
is
None
:
return
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