Compare commits

...

2 Commits

Author SHA1 Message Date
mhz
7e83bf1401 comment the assert 2024-07-05 14:23:45 +02:00
mhz
9601a3c18d comment edgelist 2024-07-05 10:49:43 +02:00
2 changed files with 3 additions and 3 deletions

View File

@ -692,8 +692,8 @@ class Dataset(InMemoryDataset):
if adj[start][end] == 1:
edges_list.append((start, end))
edge_type.append(1)
edges_list.append((end, start))
edge_type.append(1)
# edges_list.append((end, start))
# edge_type.append(1)
edge_index = torch.tensor(edges_list, dtype=torch.long).t()
edge_type = torch.tensor(edge_type, dtype=torch.long)

View File

@ -139,7 +139,7 @@ class PlaceHolder:
self.E = self.E * e_mask1 * e_mask2
# print(f"X: {self.X.shape}, E: {self.E.shape}")
# print(f"X: {self.X}, E: {self.E}")
assert torch.allclose(self.E, torch.transpose(self.E, 1, 2))
# assert torch.allclose(self.E, torch.transpose(self.E, 1, 2))
return self