IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
瀏覽代碼

Fix prepare_adj_mat() by specifying shape explicitly.

master
Stanislaw Adaszewski 4 年之前
父節點
當前提交
0578b13ea4
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/icosagon/trainprep.py

+ 1
- 1
src/icosagon/trainprep.py 查看文件

@@ -111,7 +111,7 @@ def prepare_adj_mat(adj_mat: torch.Tensor,
edges_neg = train_val_test_split_edges(edges_neg, ratios)
adj_mat_train = torch.sparse_coo_tensor(indices = edges_pos.train.transpose(0, 1),
values=torch.ones(len(edges_pos.train), dtype=adj_mat.dtype))
values=torch.ones(len(edges_pos.train), shape=adj_mat.shape, dtype=adj_mat.dtype))
return adj_mat_train, edges_pos, edges_neg


Loading…
取消
儲存