image-text-embedding
copied
update
Signed-off-by: junjie.jiang <junjie.jiang@zilliz.com>
@ -49,7 +49,10 @@ class ClipVision(NNOperator):
@property
def device(self):
if self._device is None:
self._device = torch.device(self._device_id)
if self._device_id < 0:
self._device = torch.device('cpu')
else:
return self._device
def __call__(self, image: 'Image'):