Open vmgaribay opened 2 months ago
Other note, when I tried: gen = torch.Generator().set_state(torch.default_generator.get_state()) mask_edges = torch.randperm(upper_triangular.val.size()[0],generator=gen) < threshold It almost worked, but it oscillated between two arrangements. Not sure if that is a clue as to the deeper issue.
initialization of the network and random_edge_noise
appear not to be the problem. Search continues.
the torch.randint in line 20 of local_attachment_basic_homophily.py is fine. However, torch.rand for prob_tensor
is not always consistent.
I have read on forums that this is an issue that may be due to the multithreading aspect of pytorch. I think I will give up. If anyone else has an idea, let me know.
Yeah, I tried it (setting threads and restoring them after rand stuff) anyway, and as anticipated, so slow. Obviously not a solution.
I have noticed some small differences between reruns with the same seed. I am going to attempt to replace randperm with torch.rand(), which so far has not been a problem. Fingers crossed that this takes care of it.