yangli-hub / CMMT-Code

15 stars 2 forks source link

关于代码 #4

Closed suntea233 closed 10 months ago

suntea233 commented 2 years ago

c = torch.sum(aux_output * aux_output, dim=-1) gate_value = c.unsqueeze(-1) reverse_gate_value = torch.neg(gate_value).add(1)

c是由两个aux_output点乘,请问这里的c有什么意义呢

yangli-hub commented 1 year ago

hi, this part implements the Dynamic Multimodal Gate that introduced in section 4.4 of the paper.