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

Method forward

modules.py:96–99  ·  view source on GitHub ↗
(self, x, t)

Source from the content-addressed store, hash-verified

94 )
95
96 def forward(self, x, t):
97 x = self.maxpool_conv(x)
98 emb = self.emb_layer(t)[:, :, None, None].repeat(1, 1, x.shape[-2], x.shape[-1])
99 return x + emb
100
101
102class Up(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected