JULE.torch
JULE.torch copied to clipboard
Affinity for clusters
https://github.com/jwyang/JULE.torch/blob/d43251d93aba8c00b716c62d6d5d6c34ee29bcb9/agg_clustering_c/agg_clustering.c#L78
In the lines 65-68 (agg_clustering.c file), you first get the length of cluster i and cluster j, which are saved in Y_i_size, Y_j_size, respectively. But I am confused that you use THTensor_(get2d)(Y, j, n) - 1 to call the element Y[j,n], in which the maximum of n is Y_j_size, but the column size of Y is Y->size[1].