MCPcopy Create free account
hub / github.com/microsoft/Cream / encode_text

Method encode_text

TinyCLIP/src/open_clip/model.py:1007–1009  ·  view source on GitHub ↗
(self, text, normalized=False)

Source from the content-addressed store, hash-verified

1005 return self._image_encoder(image, normalized=normalized)
1006
1007 def encode_text(self, text, normalized=False):
1008 with self.text_autocast():
1009 return self._text_encoder(text, normalized=normalized)
1010
1011 @property
1012 def logit_scale(self):

Callers 4

inference.pyFile · 0.45
teacher_text_fnFunction · 0.45
_get_classname_embFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected