MCPcopy Create free account
hub / github.com/NVlabs/SegFormer / forward

Method forward

mmseg/models/backbones/unet.py:137–144  ·  view source on GitHub ↗

Forward function.

(self, x)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected