Skip to content

Conversation

@junrushao
Copy link
Member

This PR introduces the necessary change to make structural-hash platform-independent. The change includes:

  • Explicitly require the hash type to be uint64_t rather than platform-dependent size_t.
  • Implement structural hash for POD types including double, int by unioning them with uint64_t explicitly.
  • Implement a platform-independent fast hashing algorithm for std::string

@tvm-bot
Copy link
Collaborator

tvm-bot commented Mar 6, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

  • No users to tag found in teams: ir See #10317 for details

Generated by tvm-bot

@junrushao junrushao marked this pull request as ready for review March 6, 2023 00:18
@junrushao junrushao force-pushed the feature/2023-03-05/stable-shash branch from 1be81e5 to 94144b9 Compare March 6, 2023 04:05
@junrushao
Copy link
Member Author

@tqchen please take another look :-)

This PR introduces the necessary change to make structural-hash
platform-independent. The change includes:
- Explicitly require the hash type to be `uint64_t` rather than
  platform-dependent `size_t`.
- Implement structural hash for POD types including `double`, `int`
  by unioning them with `uint64_t` explicitly.
- Implement a platform-independent fast hashing algorithm for `std::string`
@junrushao junrushao force-pushed the feature/2023-03-05/stable-shash branch from 94144b9 to e2a46ae Compare March 6, 2023 18:04
@junrushao
Copy link
Member Author

@tqchen please take another look!

@tqchen tqchen merged commit 012d6a7 into apache:main Mar 7, 2023
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