Skip to content

Use torch.accelerator API in Siamese Network example #1337

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 1 commit into from
May 2, 2025

Conversation

eromomon
Copy link
Contributor

@eromomon eromomon commented May 1, 2025

Refactor Siamese Network example 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

Copy link

netlify bot commented May 1, 2025

Deploy Preview for pytorch-examples-preview canceled.

Name Link
🔨 Latest commit 1a94f0f
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-examples-preview/deploys/6814000378a8260008a3a2f0

@msaroufim msaroufim merged commit 12dc18e into pytorch:main May 2, 2025
8 checks passed
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.

4 participants