[xpu][fix] Fix nn.Embedding module failures on XPU#178987
[xpu][fix] Fix nn.Embedding module failures on XPU#178987guangyey wants to merge 2 commits intogh/guangyey/306/basefrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/178987
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit dd95d0a with merge base 4e67aac ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
| # Only test on CPU - CUDA triggers kernel assertion instead of Python exception | ||
| device_str = str(device) | ||
| if 'cuda' not in device_str and 'mps' not in device_str: | ||
| if 'cuda' not in device_str and 'mps' not in device_str and 'xpu' not in device_str: |
There was a problem hiding this comment.
| if 'cuda' not in device_str and 'mps' not in device_str and 'xpu' not in device_str: | |
| if device_str is 'cpu': |
There was a problem hiding this comment.
Thanks, I use device type to explicitly detect cpu.
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
|
Thanks very much~ |
# Motivation #174180 introduces `nn.Embedding` module, which causes CI failures on XPU. # Additional Context fix #178854 fix #178762 Pull Request resolved: #178987 Approved by: https://github.com/mikaylagawarecki
# Motivation pytorch#174180 introduces `nn.Embedding` module, which causes CI failures on XPU. # Additional Context fix pytorch#178854 fix pytorch#178762 Pull Request resolved: pytorch#178987 Approved by: https://github.com/mikaylagawarecki
# Motivation pytorch#174180 introduces `nn.Embedding` module, which causes CI failures on XPU. # Additional Context fix pytorch#178854 fix pytorch#178762 Pull Request resolved: pytorch#178987 Approved by: https://github.com/mikaylagawarecki
Stack from ghstack (oldest at bottom):
Motivation
#174180 introduces
nn.Embeddingmodule, which causes CI failures on XPU.Additional Context
fix #178854
fix #178762