MCPcopy Create free account
hub / github.com/CHENGY12/PLOT / __init__

Method __init__

plot-adapter/main.py:59–65  ·  view source on GitHub ↗
(self, clip_model)

Source from the content-addressed store, hash-verified

57
58class TextEncoder(nn.Module):
59 def __init__(self, clip_model):
60 super().__init__()
61 self.transformer = clip_model.transformer
62 self.positional_embedding = clip_model.positional_embedding
63 self.ln_final = clip_model.ln_final
64 self.text_projection = clip_model.text_projection
65 self.dtype = clip_model.dtype
66
67 def forward(self, prompts, tokenized_prompts):
68

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected