Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

The final affinity matrix #49

Open
DonaldKam opened this issue Apr 7, 2020 · 1 comment
Open

The final affinity matrix #49

DonaldKam opened this issue Apr 7, 2020 · 1 comment

Comments

@DonaldKam
Copy link

As is illustrated in the paper, in training phase two affinity matrices are processd by row-wise or column-wise softmax. In test phase, how's the final affinity matrix computed since only one matrix is needed?

@shijieS
Copy link
Owner

shijieS commented Jun 27, 2020

Pls refer to these lines in my network.

        x = Variable(torch.zeros(pre_num, next_num+1))
        # x[0:pre_num, 0:next_num] = torch.max(x_f[0:pre_num, 0:next_num], x_t[0:pre_num, 0:next_num])
        x[0:pre_num, 0:next_num] = (x_f[0:pre_num, 0:next_num] + x_t[0:pre_num, 0:next_num]) / 2.0
        x[:, next_num:next_num+1] = x_f[:pre_num, next_num:next_num+1]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants