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

Deterministic hashing for tensors #398

Merged
merged 4 commits into from
Sep 12, 2022
Merged

Deterministic hashing for tensors #398

merged 4 commits into from
Sep 12, 2022

Conversation

dirkgr
Copy link
Member

@dirkgr dirkgr commented Sep 9, 2022

No description provided.

@dirkgr dirkgr requested a review from AkshitaB September 9, 2022 20:17
@dirkgr dirkgr self-assigned this Sep 9, 2022
Copy link
Contributor

@AkshitaB AkshitaB left a comment

Choose a reason for hiding this comment

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

LGTM. Minor comment about the pickle protocol.

@@ -82,9 +94,12 @@ def det_hash_object(self) -> Any:
return None # When you return `None` from here, it falls back to just hashing the object itself.


_PICKLE_PROTOCOL = 4
Copy link
Contributor

Choose a reason for hiding this comment

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

Can probably select protocol 5, since we require the minimum Python version to be 3.8.

@dirkgr
Copy link
Member Author

dirkgr commented Sep 12, 2022 via email

@dirkgr dirkgr merged commit 15196f2 into main Sep 12, 2022
@dirkgr dirkgr deleted the DetHashTensors branch September 12, 2022 21:02
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.

2 participants