Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make graph sample deterministic when iterate different type #265

Merged
merged 1 commit into from
Aug 6, 2022

Conversation

yaoyaowd
Copy link
Contributor

@yaoyaowd yaoyaowd commented Aug 6, 2022

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.

Copy link
Contributor

@mananshah99 mananshah99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :) great catch

@codecov-commenter
Copy link

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           

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

Copy link
Owner

@rusty1s rusty1s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool 😇

@rusty1s rusty1s merged commit ae22058 into rusty1s:master Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants