Skip to content

Add PyTorch XPU as Target Device#6297

Open
ekaakurniawan wants to merge 1 commit into
Unity-Technologies:developfrom
ekaakurniawan:develop
Open

Add PyTorch XPU as Target Device#6297
ekaakurniawan wants to merge 1 commit into
Unity-Technologies:developfrom
ekaakurniawan:develop

Conversation

@ekaakurniawan

Copy link
Copy Markdown

Proposed change(s)

Add PyTorch XPU as target device to support Intel Arc GPUs.

Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)

Steps to Setup Unity Machine Learning Agents Toolkit and PyTorch XPU

Types of change(s)

  • Bug fix
  • New feature
  • Code refactor
  • Breaking change
  • Documentation update
  • Other (please describe)

Checklist

Please advise on adding the test.

  • Added tests that prove my fix is effective or that my feature works
  • Updated the changelog (if applicable)
  • Updated the documentation (if applicable)
  • Updated the migration guide (if applicable)

Other comments

 - To support Intel Arc GPUs.
 - Set default device to XPU. Otherwise some are still on CPU.
 - Set default data type to float32. Recommended for GPU is float16 but other Torch variables are still in float32.
@CLAassistant

CLAassistant commented Jun 5, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

2 participants