| 215 | from transformers import CLIPTokenizer, CLIPTextModel |
| 216 | |
| 217 | class AbstractEncoder(nn.Module): |
| 218 | def __init__(self): |
| 219 | super().__init__() |
| 220 | |
| 221 | def encode(self, *args, **kwargs): |
| 222 | raise NotImplementedError |
| 223 | |
| 224 | |
| 225 | class FrozenCLIPEmbedderWrapper(AbstractEncoder): |
nothing calls this directly
no outgoing calls
no test coverage detected