MCPcopy Create free account
hub / github.com/dome272/Diffusion-Models-pytorch / forward

Method forward

modules.py:120–125  ·  view source on GitHub ↗
(self, x, skip_x, t)

Source from the content-addressed store, hash-verified

118 )
119
120 def forward(self, x, skip_x, t):
121 x = self.up(x)
122 x = torch.cat([skip_x, x], dim=1)
123 x = self.conv(x)
124 emb = self.emb_layer(t)[:, :, None, None].repeat(1, 1, x.shape[-2], x.shape[-1])
125 return x + emb
126
127
128class UNet(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected