MCPcopy Create free account
hub / github.com/VCIP-RGBD/DFormer / forward

Method forward

models/net_utils.py:165–171  ·  view source on GitHub ↗
(self, x, H, W)

Source from the content-addressed store, hash-verified

163 self.norm = norm_layer(out_channels)
164
165 def forward(self, x, H, W):
166 B, N, _C = x.shape
167 x = x.permute(0, 2, 1).reshape(B, _C, H, W).contiguous()
168 residual = self.residual(x)
169 x = self.channel_embed(x)
170 out = self.norm(residual + x)
171 return out
172
173
174# FFM

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected