Skip to content

Conversation

@robieta
Copy link
Contributor

@robieta robieta commented Oct 25, 2022

There is a fairly simple and commonly used hash_combine in c10/util; however in order to use it in a map we need to wrap it in a hashing struct. By defining template functions we also get recursive unpacking for free. (A later PR will want to hash a `tuple<tuple<T0, T1>, tuple<T0, T1>>`)

Differential Revision: [D40666359](https://our.internmc.facebook.com/intern/diff/D40666359/)

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 25, 2022

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/87668

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 Failures

As of commit 05377b7:

The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@github-actions
Copy link
Contributor

This PR needs a label

If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

For more information, see https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 25, 2022
There is a fairly simple and commonly used hash_combine in c10/util; however in order to use it in a map we need to wrap it in a hashing struct. By defining template functions we also get recursive unpacking for free. (A later PR will want to hash a `tuple<tuple<T0, T1>, tuple<T0, T1>>`)

Differential Revision: [D40666359](https://our.internmc.facebook.com/intern/diff/D40666359/)

[ghstack-poisoned]
kulinseth pushed a commit to kulinseth/pytorch that referenced this pull request Nov 5, 2022
…#87668)

There is a fairly simple and commonly used hash_combine in c10/util; however in order to use it in a map we need to wrap it in a hashing struct. By defining template functions we also get recursive unpacking for free. (A later PR will want to hash a `tuple<tuple<T0, T1>, tuple<T0, T1>>`)

Differential Revision: [D40666359](https://our.internmc.facebook.com/intern/diff/D40666359/)
Pull Request resolved: pytorch#87668
Approved by: https://github.com/slgong-fb
kulinseth pushed a commit to kulinseth/pytorch that referenced this pull request Dec 10, 2022
…#87668)

There is a fairly simple and commonly used hash_combine in c10/util; however in order to use it in a map we need to wrap it in a hashing struct. By defining template functions we also get recursive unpacking for free. (A later PR will want to hash a `tuple<tuple<T0, T1>, tuple<T0, T1>>`)

Differential Revision: [D40666359](https://our.internmc.facebook.com/intern/diff/D40666359/)
Pull Request resolved: pytorch#87668
Approved by: https://github.com/slgong-fb
@facebook-github-bot facebook-github-bot deleted the gh/robieta/145/head branch June 8, 2023 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants