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

Method forward

x2ct_nerf/modules/diffusionmodules/model.py:1311–1322  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

1309 padding=1)
1310
1311 def forward(self, x):
1312 # upsampling
1313 h = x
1314 for k, i_level in enumerate(range(self.num_resolutions)):
1315 for i_block in range(self.num_res_blocks + 1):
1316 h = self.res_blocks[i_level][i_block](h, None)
1317 if i_level != self.num_resolutions - 1:
1318 h = self.upsample_blocks[k](h)
1319 h = self.norm_out(h)
1320 h = nonlinearity(h)
1321 h = self.conv_out(h)
1322 return h

Callers

nothing calls this directly

Calls 1

nonlinearityFunction · 0.70

Tested by

no test coverage detected