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!
Procházet zdrojové kódy

Fix prepare_adj_mat() by specifying shape explicitly.

master
Stanislaw Adaszewski před 4 roky
rodič
revize
0578b13ea4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      src/icosagon/trainprep.py

+ 1
- 1
src/icosagon/trainprep.py Zobrazit soubor

@@ -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


Načítá se…
Zrušit
Uložit