Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
bd41a0f7
Commit
bd41a0f7
authored
Apr 23, 2021
by
Sylvain Gugger
Browse files
Style
parent
1811883e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/t5/modeling_t5.py
src/transformers/models/t5/modeling_t5.py
+1
-1
No files found.
src/transformers/models/t5/modeling_t5.py
View file @
bd41a0f7
...
@@ -424,7 +424,7 @@ class T5Attention(nn.Module):
...
@@ -424,7 +424,7 @@ class T5Attention(nn.Module):
batch_size
,
seq_length
=
hidden_states
.
shape
[:
2
]
batch_size
,
seq_length
=
hidden_states
.
shape
[:
2
]
int_seq_length
=
int
(
seq_length
)
int_seq_length
=
int
(
seq_length
)
real_seq_length
=
seq_length
real_seq_length
=
seq_length
if
past_key_value
is
not
None
:
if
past_key_value
is
not
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