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
[py][vulkan] Add is_vulkan to py api, add vulkan to device type parsing #46511
Conversation
[ghstack-poisoned]
ghstack-source-id: 2972848552124582854c723d2190ae6353a8ae01 Pull Request resolved: #46511
💊 CI failures summary and remediationsAs of commit be4442f (more details on the Dr. CI page):
2 failures not recognized by patterns:
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 on the GitHub issue tracker or post in the (internal) Dr. CI Users group. This comment has been revised 3 times. |
💊 CI failures summary and remediationsAs of commit d8aee08 (more details on the Dr. CI page):
1 job timed out:
🚧 3 ongoing upstream failures:These were probably caused by upstream breakages that are not fixed yet:
ci.pytorch.org: 1 failedThis 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 on the GitHub issue tracker or post in the (internal) Dr. CI Users group. This comment has been revised 16 times. |
… type parsing" Differential Revision: [D24379422](https://our.internmc.facebook.com/intern/diff/D24379422) Exposing Vulkan backend to python api: 1. Adding parsing for 'vulkan' to DeviceType::Vulkan 2. Adding is_vulkan for Tensor as alias to check tensor.device.type=='vulkan' Testing: ``` t = torch.randn(1, 3, 224, 224) t_v = t.to(device='vulkan') print("t.is_vulkan():", t.is_vulkan) ``` before: did not work after: works ok [ghstack-poisoned]
ghstack-source-id: 222a869ba2365619f510c7640999af051e265b15 Pull Request resolved: #46511
… type parsing" Differential Revision: [D24379422](https://our.internmc.facebook.com/intern/diff/D24379422) Exposing Vulkan backend to python api: 1. Adding parsing for 'vulkan' to DeviceType::Vulkan 2. Adding is_vulkan for Tensor as alias to check tensor.device.type=='vulkan' Testing: ``` t = torch.randn(1, 3, 224, 224) t_v = t.to(device='vulkan') print("t.is_vulkan():", t.is_vulkan) ``` before: did not work after: works ok [ghstack-poisoned]
ghstack-source-id: 760737aa9fd514052b74565a95d422c5fd3bc687 Pull Request resolved: #46511
… type parsing" Differential Revision: [D24379422](https://our.internmc.facebook.com/intern/diff/D24379422) Exposing Vulkan backend to python api: 1. Adding parsing for 'vulkan' to DeviceType::Vulkan 2. Adding is_vulkan for Tensor as alias to check tensor.device.type=='vulkan' Testing: ``` t = torch.randn(1, 3, 224, 224) t_v = t.to(device='vulkan') print("t.is_vulkan():", t.is_vulkan) ``` before: did not work after: works ok [ghstack-poisoned]
… type parsing" Differential Revision: [D24379422](https://our.internmc.facebook.com/intern/diff/D24379422) Exposing Vulkan backend to python api: 1. Adding parsing for 'vulkan' to DeviceType::Vulkan 2. Adding is_vulkan for Tensor as alias to check tensor.device.type=='vulkan' Testing: ``` t = torch.randn(1, 3, 224, 224) t_v = t.to(device='vulkan') print("t.is_vulkan():", t.is_vulkan) ``` before: did not work after: works ok [ghstack-poisoned]
ghstack-source-id: 490ed1602039c5379f8287e14d7104ae1df71d19 Pull Request resolved: #46511
@IvanKobzarev merged this pull request in e8fbe54. |
1 similar comment
@IvanKobzarev merged this pull request in e8fbe54. |
Hey @IvanKobzarev This PR breaks the following test. I am reverting it. Could you please resubmit with a fix for the error message? Thanks! https://app.circleci.com/pipelines/github/pytorch/pytorch/229554/workflows/606fdf7b-f455-416e-8300-8a9ad6bdbe95/jobs/8366102/steps
|
…o device type parsing" Summary: Test Plan: Imported from OSS Pulled By: IvanKobzarev Differential Revision: [D24448984](https://our.internmc.facebook.com/intern/diff/D24448984) Reland of the PR: #46511 The initial PR broke tests as they assert the error message that was changed in PR torch/testing/_internal/distributed/nn/api/remote_module_test.py In this PR it is changed accordingly [ghstack-poisoned]
…o device type parsing" Summary: Test Plan: Imported from OSS Pulled By: IvanKobzarev Differential Revision: [D24448984](https://our.internmc.facebook.com/intern/diff/D24448984) Reland of the PR: #46511 The initial PR broke tests as they assert the error message that was changed in PR torch/testing/_internal/distributed/nn/api/remote_module_test.py In this PR it is changed accordingly [ghstack-poisoned]
…o device type parsing" Summary: Test Plan: Imported from OSS Pulled By: IvanKobzarev Differential Revision: [D24448984](https://our.internmc.facebook.com/intern/diff/D24448984) Reland of the PR: #46511 The initial PR broke tests as they assert the error message that was changed in PR torch/testing/_internal/distributed/nn/api/remote_module_test.py In this PR it is changed accordingly [ghstack-poisoned]
Stack from ghstack:
Differential Revision: D24379422
Exposing Vulkan backend to python api:
Testing:
before: did not work
after: works ok