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!
Ver código fonte

Fix prepare_adj_mat() by specifying shape explicitly.

master
Stanislaw Adaszewski 4 anos atrás
pai
commit
0578b13ea4
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      src/icosagon/trainprep.py

+ 1
- 1
src/icosagon/trainprep.py Ver arquivo

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


Carregando…
Cancelar
Salvar