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

Method __call__

python/dump.py:413–424  ·  view source on GitHub ↗
(self, hidden_states, causal_attention_mask)

Source from the content-addressed store, hash-verified

411 self.layer_norm2 = LayerNorm(768)
412
413 def __call__(self, hidden_states, causal_attention_mask):
414 residual = hidden_states
415 hidden_states = self.layer_norm1(hidden_states)
416 hidden_states = self.self_attn(hidden_states, causal_attention_mask)
417 hidden_states = residual + hidden_states
418
419 residual = hidden_states
420 hidden_states = self.layer_norm2(hidden_states)
421 hidden_states = self.mlp(hidden_states)
422 hidden_states = residual + hidden_states
423
424 return hidden_states
425
426class CLIPEncoder:
427 def __init__(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected