MCPcopy Create free account
hub / github.com/Gadersd/stable-diffusion-burn / CLIPEncoder

Class CLIPEncoder

python/dump.py:426–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424 return hidden_states
425
426class CLIPEncoder:
427 def __init__(self):
428 self.layers = [CLIPEncoderLayer() for i in range(12)]
429
430 def __call__(self, hidden_states, causal_attention_mask):
431 for l in self.layers:
432 hidden_states = l(hidden_states, causal_attention_mask)
433 return hidden_states
434
435class CLIPTextEmbeddings:
436 def __init__(self):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected