MCPcopy Create free account
hub / github.com/apple/ml-stable-diffusion / forward

Method forward

python_coreml_stable_diffusion/unet.py:491–493  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

489 self.conv = nn.Conv2d(channels, channels, 3, padding=1)
490
491 def forward(self, x):
492 x = F.interpolate(x, scale_factor=2.0, mode="nearest")
493 return self.conv(x)
494
495
496class Downsample2D(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected