Skip to content

test(cholesky): align with Paddle compat cholesky behavior#69

Open
youge325 wants to merge 9 commits into
PFCCLab:masterfrom
youge325:test/cholesky-20260530
Open

test(cholesky): align with Paddle compat cholesky behavior#69
youge325 wants to merge 9 commits into
PFCCLab:masterfrom
youge325:test/cholesky-20260530

Conversation

@youge325

@youge325 youge325 commented May 30, 2026

Copy link
Copy Markdown
Contributor

Summary

新增 CholeskyTest 跨框架对比测试,对齐 Paddle compat 层 cholesky 接口行为。

Changes

  • 新增 test/ATen/ops/CholeskyTest.cpp
  • 更新 doc/ATen/core/tensor_body.md 中 cholesky 状态为已对齐

Test Coverage

  • Shape: 2x2, 3x3, 8x8, batch 2x3x3
  • Dtype: kFloat, kDouble
  • API 变体: at::cholesky, Tensor::cholesky, upper=true/false
  • 异常: 非正定矩阵

Verification

  • PCAT result_cmp: paddle_CholeskyTest MATCH torch_CholeskyTest

Related: PaddlePaddle/Paddle#79194

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings May 30, 2026 08:30

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 adds cross-framework coverage for the ATen cholesky API and updates the compatibility status documentation to reflect that both free-function and tensor-method variants are aligned.

Changes:

  • Adds CholeskyTest covering 2D/batched inputs, float/double dtypes, upper variants, tensor method calls, and non-positive-definite error behavior.
  • Updates the ATen tensor API status table to mark cholesky as implemented/aligned.

Reviewed changes

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

File Description
test/ATen/ops/CholeskyTest.cpp Adds result-comparison tests for at::cholesky and Tensor::cholesky.
doc/ATen/core/tensor_body.md Marks cholesky support as complete for both Tensor and ATen APIs.

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

youge325 and others added 9 commits June 14, 2026 15:40
新增 CholeskyTest 跨框架对比测试,覆盖:
- Shape: 2x2, 3x3, 8x8, batch 2x3x3
- Dtype: kFloat, kDouble
- API 变体: at::cholesky, Tensor::cholesky, upper=true/false
- 异常: 非正定矩阵

更新 tensor_body.md 中 cholesky 状态为已对齐。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@youge325 youge325 force-pushed the test/cholesky-20260530 branch from 2d30104 to cd326e6 Compare June 28, 2026 18:37
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