Skip to content

[Cpp API Compatibility] Align tests with PyTorch 2.13.0#76

Open
youge325 wants to merge 1 commit into
PFCCLab:masterfrom
youge325:test/aten-compat-pytorch-2.13
Open

[Cpp API Compatibility] Align tests with PyTorch 2.13.0#76
youge325 wants to merge 1 commit into
PFCCLab:masterfrom
youge325:test/aten-compat-pytorch-2.13

Conversation

@youge325

Copy link
Copy Markdown
Contributor

Summary

  • Upgrade the active Linux CPU comparison job to libtorch 2.13.0 CPU.
  • Configure the disabled Linux CUDA job for Paddle nightly cu126 and libtorch 2.13.0+cu126 while keeping if: ${{ false }}.
  • Remove compatibility cases for TensorBase::has_names and Tensor::rename, which are no longer public APIs in PyTorch 2.13.0.

Dependency URLs

  • CPU: https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-2.13.0%2Bcpu.zip
  • CUDA 12.6: https://download.pytorch.org/libtorch/cu126/libtorch-shared-with-deps-2.13.0%2Bcu126.zip

Both archives were checked successfully over HTTP. The CUDA job remains disabled until a CUDA 12.6-capable runner is available.

Companion Paddle PR

Copilot AI review requested due to automatic review settings July 10, 2026 13:44

Copilot AI 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.

Pull request overview

This PR updates the repo’s CI and compatibility tests to match PyTorch (LibTorch) 2.13.0, including removing test cases for APIs that are no longer public in that version.

Changes:

  • Bumped the Linux CPU workflow job to download and use LibTorch 2.13.0 (CPU).
  • Updated the (still disabled) Linux CUDA workflow job to target Paddle nightly cu126 and LibTorch 2.13.0+cu126.
  • Removed compatibility tests for TensorBase::has_names and Tensor::rename, aligning with their removal from PyTorch 2.13.0’s public API surface.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
test/ATen/ops/MiscTensorTest.cpp Removes the Tensor::rename test case that is no longer applicable for PyTorch 2.13.0.
test/ATen/core/TensorAccessorTest.cpp Removes the has_names test case that targets a no-longer-public API.
.github/workflows/compile-test.yml Updates LibTorch download URLs to 2.13.0 (CPU) and adjusts the disabled CUDA job to cu126 + LibTorch 2.13.0+cu126.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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