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!
Browse Source

Fix prepare_adj_mat() by specifying shape explicitly.

master
Stanislaw Adaszewski 3 years ago
parent
commit
0578b13ea4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/icosagon/trainprep.py

+ 1
- 1
src/icosagon/trainprep.py View File

@@ -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…
Cancel
Save