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
de737866
Unverified
Commit
de737866
authored
Feb 23, 2022
by
Suraj Patil
Committed by
GitHub
Feb 23, 2022
Browse files
[CLIP] fix grad ckpt (#15789)
parent
a3e607d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/clip/modeling_clip.py
src/transformers/models/clip/modeling_clip.py
+1
-1
No files found.
src/transformers/models/clip/modeling_clip.py
View file @
de737866
...
@@ -572,7 +572,7 @@ class CLIPEncoder(nn.Module):
...
@@ -572,7 +572,7 @@ class CLIPEncoder(nn.Module):
output_attentions
=
output_attentions
,
output_attentions
=
output_attentions
,
)
)
hidden_states
=
layer_outputs
[
0
]
hidden_states
=
layer_outputs
[
0
]
if
output_attentions
:
if
output_attentions
:
all_attentions
=
all_attentions
+
(
layer_outputs
[
1
],)
all_attentions
=
all_attentions
+
(
layer_outputs
[
1
],)
...
...
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