MCPcopy Create free account
hub / github.com/DPS2022/diffusion-posterior-sampling / forward

Method forward

guided_diffusion/unet.py:209–211  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

207 self.op = avg_pool_nd(dims, kernel_size=stride, stride=stride)
208
209 def forward(self, x):
210 assert x.shape[1] == self.channels
211 return self.op(x)
212
213
214class ResBlock(TimestepBlock):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected