You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
Thanks for your work @youngkyunJang !
I noticed that to implement equation 1 of the paper i.e to compute the quantization vector using Soft quantization, tau_q is multiplied instead of division.
def Soft_Quantization(X, C, N_books, tau_q):
L_word = int(C.size()[1]/N_books)
x = T.split(X, L_word, dim=1)
c = T.split(C, L_word, dim=1)
for i in range(N_books):
soft_c = F.softmax(squared_distances(x[i], c[i]) * (-tau_q), dim=-1)
if i==0:
Z = soft_c @ c[i]
else:
Z = T.cat((Z, soft_c @ c[i]), dim=1)
return Z
Please let me know if there is a correction.
Thanks
Aakash
The text was updated successfully, but these errors were encountered:
Hi.
Thanks for your work @youngkyunJang !
I noticed that to implement equation 1 of the paper i.e to compute the quantization vector using Soft quantization,
tau_q
is multiplied instead of division.Please let me know if there is a correction.
Thanks
Aakash
The text was updated successfully, but these errors were encountered: