Add InferenceMode TLS to ThreadLocalState.#55822
Closed
ailzhang wants to merge 1 commit intogh/ailzhang/63/basefrom
Closed
Add InferenceMode TLS to ThreadLocalState.#55822ailzhang wants to merge 1 commit intogh/ailzhang/63/basefrom
ailzhang wants to merge 1 commit intogh/ailzhang/63/basefrom
Conversation
[ghstack-poisoned]
Contributor
💊 CI failures summary and remediationsAs of commit 727a8ca (more details on the Dr. CI page): ✅ None of the CI failures appear to be your fault 💚
❄️ 1 failure tentatively classified as flakybut reruns have not yet been triggered to confirm:
|
ezyang
approved these changes
Apr 13, 2021
Contributor
krshrimali
pushed a commit
to krshrimali/pytorch
that referenced
this pull request
May 19, 2021
Summary: Pull Request resolved: pytorch#55822 Test Plan: Imported from OSS Reviewed By: bhosmer Differential Revision: D27721285 Pulled By: ailzhang fbshipit-source-id: c978927f8cb3a91de45635b8279e166a3d5652ab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack from ghstack:
Differential Revision: D27721285
@albanD and @ezyang suggested this change in the first PR. It was no longer applicable since I used the original raw_local_dispatch_key_set TLS in that PR. But then I forgot about it when I added a new TLS to reduce instruction counts.Thanks @bhosmer for catching this!!
@linbinyu has helped confirmed that this unblocks the issue described in https://fb.quip.com/DlSrAmTW4Wdf! Thanks!