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

Method __call__

python/dump.py:62–65  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

60 self.nin_shortcut = Conv2d(in_channels, out_channels, 1) if in_channels != out_channels else lambda x: x
61
62 def __call__(self, x):
63 h = self.conv1(self.norm1(x).swish())
64 h = self.conv2(self.norm2(h).swish())
65 return self.nin_shortcut(x) + h
66
67class Mid:
68 def __init__(self, block_in):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected