Skip to content

Add TorchTPU entry - #2137

Open
ejmartinezm wants to merge 6 commits into
pytorch:sitefrom
ejmartinezm:add-torchtpu
Open

ejmartinezm wants to merge 6 commits into
pytorch:sitefrom
ejmartinezm:add-torchtpu

Conversation

@ejmartinezm

Copy link
Copy Markdown

Warning

This repository is NOT the source of truth for the PyTorch website.
Only a very small number of files here are still actively used. Please do not submit website changes to this repo.

See the README for details, or contact the PyTorch Foundation team at ops@pytorch.org.


If your change is to one of the few files still served from this repo, please describe it below:

Description

Motivation

@netlify

netlify Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for pytorch-dot-org-preview ready!

Name Link
🔨 Latest commit 5297ccc
🔍 Latest deploy log https://app.netlify.com/projects/pytorch-dot-org-preview/deploys/6abc4e14033d300008d3a110
😎 Deploy Preview https://deploy-preview-2137--pytorch-dot-org-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

CLA Not Signed

Comment thread _get_started/additional_platforms/torch_tpu.md Outdated
Comment thread _get_started/additional_platforms/torch_tpu.md Outdated
Comment thread _get_started/additional_platforms/torch_tpu.md
Fixed formatting in the TorchTPU documentation and corrected the device assignment example.
Comment thread _get_started/additional_platforms/torch_tpu.md Outdated
Comment thread _get_started/additional_platforms/torch_tpu.md Outdated
Comment thread _get_started/additional_platforms/torch_tpu.md Outdated
ejmartinezm and others added 3 commits September 25, 2026 16:01
Co-authored-by: LeeHowes <github@fidgetfiction.co.uk>
Co-authored-by: LeeHowes <github@fidgetfiction.co.uk>
Removed the recommendation for TCMalloc memory allocator for optimal runtime performance.

@albanD albanD left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit on the python string. but sounds good otherwise.
You should force push the commits in the PR ensuring they're all authored with your account that signed the CLA such that the CLA is green!

Comment thread _get_started/additional_platforms/torch_tpu.md Outdated

```python
import torch
device =torch.device("tpu")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what you want to show with this @chrishjones20 since it's not used below?
If it's just that regular device object works, I would add a quick comment mentioning it.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even though we aren't setting device=device in lines 35 and 36 we still have to call device = torch.device("tpu") for it to work.

You're saying just add a comment to line 33 that says that?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we still have to call device = torch.device("tpu") for it to work.

That should not be true no. You shouldn't need to do that.

Co-authored-by: albanD <desmaison.alban@gmail.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants