MCPcopy Create free account
hub / github.com/dek924/PerX2CT / forward

Method forward

taming/modules/diffusionmodules/model.py:771–782  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

769 padding=1)
770
771 def forward(self, x):
772 # upsampling
773 h = x
774 for k, i_level in enumerate(range(self.num_resolutions)):
775 for i_block in range(self.num_res_blocks + 1):
776 h = self.res_blocks[i_level][i_block](h, None)
777 if i_level != self.num_resolutions - 1:
778 h = self.upsample_blocks[k](h)
779 h = self.norm_out(h)
780 h = nonlinearity(h)
781 h = self.conv_out(h)
782 return h
783

Callers

nothing calls this directly

Calls 1

nonlinearityFunction · 0.70

Tested by

no test coverage detected