Skip to content

Use torch.accelerator API in mnist examples #1334

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

Merged
merged 2 commits into from
Apr 30, 2025

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
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