MCPcopy Create free account
hub / github.com/Royalvice/DocDiff / forward

Method forward

model/DocDiff.py:146–148  ·  view source on GitHub ↗
(self, x: torch.Tensor, t: torch.Tensor)

Source from the content-addressed store, hash-verified

144 self.res = ResidualBlock(in_channels + out_channels, out_channels, time_channels, is_noise=is_noise)
145
146 def forward(self, x: torch.Tensor, t: torch.Tensor):
147 x = self.res(x, t)
148 return x
149
150
151class MiddleBlock(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected