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

add dispatch_to_cpu for the operators #2874

Closed
wants to merge 1 commit into from

Conversation

TroyGarden
Copy link
Contributor

Summary:

context

  • in the tests with dispatch_to_autograd can cover all cases including cpu, cuda, meta
  • however, in an inference workflow, it complains that can't find the CPU version: P1490223505
Exception Found: Could not run 'fbgemm::permute_multi_embedding' with arguments from the 'CPU' backend
  • it looks like AutogradCPU and CPU are treated differently.
    {F1768093961}

Differential Revision: D48720379

Summary:
# context
* in the tests with `dispatch_to_autograd` can cover all cases including cpu, cuda, meta
* however, in an inference workflow, it complains that can't find the CPU version: P1490223505
```
Exception Found: Could not run 'fbgemm::permute_multi_embedding' with arguments from the 'CPU' backend
```
* it looks like `AutogradCPU` and `CPU` are treated differently.
 {F1768093961}

Differential Revision: D48720379
Copy link

netlify bot commented Jul 23, 2024

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit a2169b6
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/669f1a612e458e00088269a8
😎 Deploy Preview https://deploy-preview-2874--pytorch-fbgemm-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D48720379

TroyGarden pushed a commit to TroyGarden/FBGEMM that referenced this pull request Jul 23, 2024
Summary:
Pull Request resolved: pytorch#2874

# context
* in the tests with `dispatch_to_autograd` can cover all cases including cpu, cuda, meta
* however, in an inference workflow, it complains that can't find the CPU version: P1490223505
```
Exception Found: Could not run 'fbgemm::permute_multi_embedding' with arguments from the 'CPU' backend
```
* it looks like `AutogradCPU` and `CPU` are treated differently.
 {F1768093961}

Differential Revision: D48720379
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in c79aa37.

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.

2 participants