MCPcopy Create free account
hub / github.com/Monalissaa/DisenDiff / AbstractEncoder

Class AbstractEncoder

src/custom_modules.py:217–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215from transformers import CLIPTokenizer, CLIPTextModel
216
217class AbstractEncoder(nn.Module):
218 def __init__(self):
219 super().__init__()
220
221 def encode(self, *args, **kwargs):
222 raise NotImplementedError
223
224
225class FrozenCLIPEmbedderWrapper(AbstractEncoder):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected