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

Method forward

segmentation/backbones/unet.py:79–86  ·  view source on GitHub ↗

Forward function.

(self, x)

Source from the content-addressed store, hash-verified

77 self.convs = nn.Sequential(*convs)
78
79 def forward(self, x):
80 """Forward function."""
81
82 if self.with_cp and x.requires_grad:
83 out = cp.checkpoint(self.convs, x)
84 else:
85 out = self.convs(x)
86 return out
87
88
89@UPSAMPLE_LAYERS.register_module()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected