rusty1s / pytorch_sparse

PyTorch Extension Library of Optimized Autograd Sparse Matrix Operations
MIT License
1.01k stars 147 forks source link

make graph sample deterministic when iterate different type #265

Closed yaoyaowd closed 2 years ago

yaoyaowd commented 2 years ago

The C10dict is not deterministic when we construct and iterate it element. The PR created a vector that contains a sorted list of dictionary keys to iterate during sampling to make the sampled result deterministic.

codecov-commenter commented 2 years ago

Codecov Report

Merging #265 (56efa66) into master (7f6379a) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #265   +/-   ##
=======================================
  Coverage   72.32%   72.32%           
=======================================
  Files          28       28           
  Lines        1120     1120           
=======================================
  Hits          810      810           
  Misses        310      310           

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more