Skip to content

Commit

Permalink
FIX: fix UserWarning in get_norm_adj_mat
Browse files Browse the repository at this point in the history
  • Loading branch information
Sherry-XLL committed Apr 4, 2022
1 parent dbd5427 commit 390c305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recbole/model/general_recommender/ncl.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def get_norm_adj_mat(self):
L = sp.coo_matrix(L)
row = L.row
col = L.col
i = torch.LongTensor([row, col])
i = torch.LongTensor(np.array([row, col]))
data = torch.FloatTensor(L.data)
SparseL = torch.sparse.FloatTensor(i, data, torch.Size(L.shape))
return SparseL
Expand Down

0 comments on commit 390c305

Please sign in to comment.