Slep commited on
Commit
8ef8dba
1 Parent(s): 6b537e8

Remove hardcoded move to device in forward.

Browse files
Files changed (1) hide show
  1. hf_model.py +0 -1
hf_model.py CHANGED
@@ -65,7 +65,6 @@ class CondViTForEmbedding(PreTrainedModel):
65
  convert_to_tensor=True,
66
  convert_to_numpy=False,
67
  )
68
- text_embeddings = text_embeddings.to(pixel_values.device)
69
  else:
70
  text_embeddings = None
71
  return self.condvit(imgs=pixel_values, c=text_embeddings)
 
65
  convert_to_tensor=True,
66
  convert_to_numpy=False,
67
  )
 
68
  else:
69
  text_embeddings = None
70
  return self.condvit(imgs=pixel_values, c=text_embeddings)