MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / forward

Method forward

ldm/modules/diffusionmodules/model.py:87–94  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

85 padding=0)
86
87 def forward(self, x):
88 if self.with_conv:
89 pad = (0,1,0,1)
90 x = torch.nn.functional.pad(x, pad, mode="constant", value=0)
91 x = self.conv(x)
92 else:
93 x = torch.nn.functional.avg_pool2d(x, kernel_size=2, stride=2)
94 return x
95
96
97class ResnetBlock(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected