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

Method __call__

python/dump.py:232–236  ·  view source on GitHub ↗
(self, x, context=None)

Source from the content-addressed store, hash-verified

230 self.norm3 = LayerNorm(dim)
231
232 def __call__(self, x, context=None):
233 x = self.attn1(self.norm1(x)) + x
234 x = self.attn2(self.norm2(x), context=context) + x
235 x = self.ff(self.norm3(x)) + x
236 return x
237
238class SpatialTransformer:
239 def __init__(self, channels, context_dim, n_heads, d_head):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected