MCPcopy Create free account
hub / github.com/TaoRuijie/TalkNet-ASD / forward_cross_attention

Method forward_cross_attention

model/talkNetModel.py:46–49  ·  view source on GitHub ↗
(self, x1, x2)

Source from the content-addressed store, hash-verified

44 return x
45
46 def forward_cross_attention(self, x1, x2):
47 x1_c = self.crossA2V(src = x1, tar = x2)
48 x2_c = self.crossV2A(src = x2, tar = x1)
49 return x1_c, x2_c
50
51 def forward_audio_visual_backend(self, x1, x2):
52 x = torch.cat((x1,x2), 2)

Callers 3

evaluate_networkFunction · 0.80
train_networkMethod · 0.80
evaluate_networkMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected