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

Method forward

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

Source from the content-addressed store, hash-verified

197 m.bias.data.zero_()
198
199 def forward(self, x1, x2):
200 B, C, H, W = x1.shape
201 x1 = x1.flatten(2).transpose(1, 2)
202 x2 = x2.flatten(2).transpose(1, 2)
203 x1, x2 = self.cross(x1, x2)
204 merge = torch.cat((x1, x2), dim=-1)
205 merge = self.channel_emb(merge, H, W)
206
207 return merge

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected