MCPcopy Create free account
hub / github.com/alinlab/SelfPatch / forward

Method forward

segmentation/backbones/unet.py:140–147  ·  view source on GitHub ↗

Forward function.

(self, x)

Source from the content-addressed store, hash-verified

138 self.deconv_upsamping = nn.Sequential(deconv, norm, activate)
139
140 def forward(self, x):
141 """Forward function."""
142
143 if self.with_cp and x.requires_grad:
144 out = cp.checkpoint(self.deconv_upsamping, x)
145 else:
146 out = self.deconv_upsamping(x)
147 return out
148
149
150@UPSAMPLE_LAYERS.register_module()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected