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

Method forward

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

Source from the content-addressed store, hash-verified

73 m.bias.data.zero_()
74
75 def forward(self, x1, x2):
76 channel_weights = self.channel_weights(x1, x2)
77 spatial_weights = self.spatial_weights(x1, x2)
78 out_x1 = x1 + self.lambda_c * channel_weights[1] * x2 + self.lambda_s * spatial_weights[1] * x2
79 out_x2 = x2 + self.lambda_c * channel_weights[0] * x1 + self.lambda_s * spatial_weights[0] * x1
80 return out_x1, out_x2
81
82
83# Stage 1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected