(self, text)
| 168 | param.requires_grad = False |
| 169 | |
| 170 | def forward(self, text): |
| 171 | tokens = open_clip.tokenize(text) |
| 172 | z = self.encode_with_transformer(tokens.to(self.device)) |
| 173 | return z |
| 174 | |
| 175 | def encode_with_transformer(self, text): |
| 176 | x = self.model.token_embedding(text) # [batch_size, n_ctx, d_model] |
nothing calls this directly
no test coverage detected