vgsatorras / few-shot-gnn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reason for multiplication by 1e8

mctigger opened this issue · comments

W_new = W_new - W_id.expand_as(W_new) * 1e8

What's the reason for this line? Why do you multiply by 1e8

By doing this, the diagonal values of the matrix are set to 0 after applying the Softmax operation at line:

W_new = F.softmax(W_new)

Thank you for the quick response!