Conversation

jafraustro

Refactor MNIST examples to utilize torch.accelerator API torch.accelerator API allows to abstract some of the accelerator specifics in the user scripts. By leveraging this API, the code becomes more adaptable to various hardware accelerators.

CC: @msaroufim, @malfet, @dvrogozh

Refactor MNIST examples to utilize `torch.accelerator` API `torch.accelerator` API allows to abstract some of the accelerator specifics
in the user scripts. By leveraging this API, the code becomes more adaptable to various hardware accelerators.

Signed-off-by: jafraustro <[email protected]>
@netlifyNetlify

Deploy Preview for pytorch-examples-preview canceled.

NameLink
🔨 Latest commitd472afa
🔍 Latest deploy loghttps://app.netlify.com/sites/pytorch-examples-preview/deploys/681159b68b91c300088e35c9

@msaroufimmsaroufim merged commit 65722fe into pytorch:main Apr 30, 2025
8 checks passed
@dvrogozhdvrogozh mentioned this pull request May 2, 2025
@jafraustrojafraustro deleted the jafraust/accel_mnist branch May 6, 2025 22:51
wkliao added a commit to wkliao/PnetCDF-Python that referenced this pull request May 9, 2025
Pytorch  repo has updated mnist_main.py on Apr 30, 2025, which
uses torch.accelerator APIs. See
pytorch/examples#1334
wkliao added a commit to wkliao/PnetCDF-Python that referenced this pull request May 9, 2025
Pytorch  repo has updated mnist_main.py on Apr 30, 2025, which
uses torch.accelerator APIs. See
pytorch/examples#1334
wkliao added a commit to wkliao/PnetCDF-Python that referenced this pull request May 9, 2025
Pytorch  repo has updated mnist_main.py on Apr 30, 2025, which
uses torch.accelerator APIs. See
pytorch/examples#1334
wkliao added a commit to wkliao/PnetCDF-Python that referenced this pull request May 9, 2025
Pytorch  repo has updated mnist_main.py on Apr 30, 2025, which
uses torch.accelerator APIs. See
pytorch/examples#1334
Sign up for free to join this conversation on . Already have an account? Sign in to comment
None yet

Successfully merging this pull request may close these issues.