Skip to content

Fix inaccurate dispatch tables#54127

Closed
ezyang wants to merge 5 commits intogh/ezyang/954/basefrom
gh/ezyang/954/head
Closed

Fix inaccurate dispatch tables#54127
ezyang wants to merge 5 commits intogh/ezyang/954/basefrom
gh/ezyang/954/head

Conversation

@ezyang
Copy link
Copy Markdown
Contributor

@ezyang ezyang commented Mar 17, 2021

Stack from ghstack:

During the meta tensor bringup, I found all of these operators
advertised that they worked on all backends (DefaultBackend/Math)
but actually they only worked on CPU/CUDA.

Signed-off-by: Edward Z. Yang ezyang@fb.com

Differential Revision: D27109508

During the meta tensor bringup, I found all of these operators
advertised that they worked on all backends (DefaultBackend/Math)
but actually they only worked on CPU/CUDA.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

[ghstack-poisoned]
@facebook-github-bot
Copy link
Copy Markdown
Contributor

facebook-github-bot commented Mar 17, 2021

💊 CI failures summary and remediations

As of commit e20fb81 (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

@ezyang ezyang requested a review from ailzhang March 17, 2021 13:59
ezyang added 3 commits March 17, 2021 07:55
During the meta tensor bringup, I found all of these operators
advertised that they worked on all backends (DefaultBackend/Math)
but actually they only worked on CPU/CUDA.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

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

[ghstack-poisoned]
During the meta tensor bringup, I found all of these operators
advertised that they worked on all backends (DefaultBackend/Math)
but actually they only worked on CPU/CUDA.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

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

[ghstack-poisoned]
During the meta tensor bringup, I found all of these operators
advertised that they worked on all backends (DefaultBackend/Math)
but actually they only worked on CPU/CUDA.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

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

[ghstack-poisoned]
@ezyang ezyang requested a review from mruberry March 17, 2021 21:40
Copy link
Copy Markdown
Collaborator

@mruberry mruberry left a comment

Choose a reason for hiding this comment

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

Nice cleanup. As mentioned on another PR:

  • is there a way to test for this so new incorrect dispatches can't accumulate?
  • are there clearer names we can use than "DefaultBackend" or "Math"? "DefaultBackend" seems to be especially confusing.

During the meta tensor bringup, I found all of these operators
advertised that they worked on all backends (DefaultBackend/Math)
but actually they only worked on CPU/CUDA.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

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

[ghstack-poisoned]
Copy link
Copy Markdown
Contributor

@ailzhang ailzhang left a comment

Choose a reason for hiding this comment

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

Thanks!

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@ezyang merged this pull request in 645a3e9.

@facebook-github-bot facebook-github-bot deleted the gh/ezyang/954/head branch March 23, 2021 14:16
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Pull Request resolved: pytorch#54127

During the meta tensor bringup, I found all of these operators
advertised that they worked on all backends (DefaultBackend/Math)
but actually they only worked on CPU/CUDA.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

Test Plan: Imported from OSS

Reviewed By: mruberry

Differential Revision: D27109508

Pulled By: ezyang

fbshipit-source-id: 0f474ecf4aba8b8207f2910bdc962bf581f53853
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants