Open jiayu-Zou opened 1 year ago
theoretical code: att = torch.softmax(torch.mul(mxpool, avgpool), 1) fusion = attt avgpool + attt mxpool
actual code : att = torch.softmax(torch.mul(mxpool, avgpool), 1) attt1 = att[:, 0, :, :].unsqueeze(1) attt2 = att[:, 1, :, :].unsqueeze(1) fusion = attt1 avgpool + attt2 mxpool
why?
theoretical code: att = torch.softmax(torch.mul(mxpool, avgpool), 1) fusion = attt avgpool + attt mxpool
actual code : att = torch.softmax(torch.mul(mxpool, avgpool), 1) attt1 = att[:, 0, :, :].unsqueeze(1) attt2 = att[:, 1, :, :].unsqueeze(1) fusion = attt1 avgpool + attt2 mxpool
why?