mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-01 18:51:14 +06:00
vilt_model (#22930)
This commit is contained in:
parent
4d10de55b4
commit
d04ec99bec
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user