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

[py][vulkan] Add is_vulkan to py api, add vulkan to device type parsing #46511

Closed
wants to merge 5 commits into from

Commits on Oct 17, 2020

  1. Configuration menu
    Copy the full SHA
    be4442f View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2020

  1. Update on "[py][vulkan] Add is_vulkan to py api, add vulkan to device…

    … 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]
    IvanKobzarev committed Oct 19, 2020
    Configuration menu
    Copy the full SHA
    ef81438 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2020

  1. Update on "[py][vulkan] Add is_vulkan to py api, add vulkan to device…

    … 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]
    IvanKobzarev committed Oct 20, 2020
    Configuration menu
    Copy the full SHA
    42d3a53 View commit details
    Browse the repository at this point in the history
  2. Update on "[py][vulkan] Add is_vulkan to py api, add vulkan to device…

    … 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]
    IvanKobzarev committed Oct 20, 2020
    Configuration menu
    Copy the full SHA
    10b5213 View commit details
    Browse the repository at this point in the history
  3. Update on "[py][vulkan] Add is_vulkan to py api, add vulkan to device…

    … 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]
    IvanKobzarev committed Oct 20, 2020
    Configuration menu
    Copy the full SHA
    d8aee08 View commit details
    Browse the repository at this point in the history