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
d04ec99b
Unverified
Commit
d04ec99b
authored
Apr 22, 2023
by
SUSHMANTH REDDY
Committed by
GitHub
Apr 21, 2023
Browse files
vilt_model (#22930)
parent
4d10de55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/transformers/models/vilt/modeling_vilt.py
src/transformers/models/vilt/modeling_vilt.py
+2
-0
No files found.
src/transformers/models/vilt/modeling_vilt.py
View file @
d04ec99b
...
@@ -1260,6 +1260,8 @@ class ViltForImageAndTextRetrieval(ViltPreTrainedModel):
...
@@ -1260,6 +1260,8 @@ class ViltForImageAndTextRetrieval(ViltPreTrainedModel):
loss
=
None
loss
=
None
if
labels
is
not
None
:
if
labels
is
not
None
:
# move labels to correct device to enable PP
labels
=
labels
.
to
(
logits
.
device
)
raise
NotImplementedError
(
"Training is not yet supported."
)
raise
NotImplementedError
(
"Training is not yet supported."
)
if
not
return_dict
:
if
not
return_dict
:
...
...
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