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

Method forward

models/net_utils.py:44–48  ·  view source on GitHub ↗
(self, x1, x2)

Source from the content-addressed store, hash-verified

42 )
43
44 def forward(self, x1, x2):
45 B, _, H, W = x1.shape
46 x = torch.cat((x1, x2), dim=1) # B 2C H W
47 spatial_weights = self.mlp(x).reshape(B, 2, 1, H, W).permute(1, 0, 2, 3, 4) # 2 B 1 H W
48 return spatial_weights
49
50
51# FRM

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected