Skip to content

Conversation

jafraustro
Copy link
Contributor

@jafraustro jafraustro commented Apr 29, 2025

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 <jaime.fraustro.valdez@intel.com>
Copy link

netlify bot commented Apr 29, 2025

Deploy Preview for pytorch-examples-preview canceled.

Name Link
🔨 Latest commit d472afa
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-examples-preview/deploys/681159b68b91c300088e35c9

…of --no_mps --no_cuda

Signed-off-by: jafraustro <jaime.fraustro.valdez@intel.com>
@jafraustro jafraustro requested a review from msaroufim as a code owner April 29, 2025 22:59
@msaroufim msaroufim merged commit 65722fe into pytorch:main Apr 30, 2025
8 checks passed
@jafraustro jafraustro 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 github 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 github 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 github 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 github 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 GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants