mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
vilt_model (#22930)
This commit is contained in:
parent
4d10de55b4
commit
d04ec99bec
@ -1260,6 +1260,8 @@ class ViltForImageAndTextRetrieval(ViltPreTrainedModel):
|
||||
|
||||
loss = 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.")
|
||||
|
||||
if not return_dict:
|
||||
|
Loading…
Reference in New Issue
Block a user