vilt_model (#22930)

This commit is contained in:
SUSHMANTH REDDY 2023-04-22 05:31:25 +05:30 committed by GitHub
parent 4d10de55b4
commit d04ec99bec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: