Skip to content

test(vstack): align with Paddle compat vstack behavior#65

Open
youge325 wants to merge 10 commits into
PFCCLab:masterfrom
youge325:test/vstack-20260528
Open

test(vstack): align with Paddle compat vstack behavior#65
youge325 wants to merge 10 commits into
PFCCLab:masterfrom
youge325:test/vstack-20260528

Conversation

@youge325

@youge325 youge325 commented May 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Add cross-framework compatibility test for at::vstack.

Changes

  • Add test/ATen/ops/VStackTest.cpp with 12 test cases covering shape/dtype/exception
  • Update doc/cpp_api_mapping_cn.md: at::vstack status changed from 功能缺失 to API完全一致

Test Coverage

  • Shape: 0D scalar, 1D, 2D small, 2D large (50x100), zero-dim, all-ones, mixed dims
  • Dtype: kFloat, kDouble, kInt, kLong
  • Exception: empty tensor list

Related

Related: PaddlePaddle/Paddle#79175

Copilot AI review requested due to automatic review settings May 28, 2026 12:23

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

Adds a new cross-framework compatibility test suite for at::vstack and updates the Chinese C++ API mapping document to mark at::vstack as fully compatible in the compat layer.

Changes:

  • Added test/ATen/ops/VStackTest.cpp with shape/dtype/exception coverage for at::vstack.
  • Updated doc/cpp_api_mapping_cn.md to move at::vstack from “功能缺失” to “API 完全一致” and adjusted summary counts.

Reviewed changes

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

File Description
test/ATen/ops/VStackTest.cpp Adds compatibility test cases that write vstack results (shape + some dtype/exception signals) to the shared result file for cross-framework comparison.
doc/cpp_api_mapping_cn.md Updates mapping/status tables and statistics to reflect at::vstack being fully supported.

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

Comment thread doc/cpp_api_mapping_cn.md Outdated
| 65 | `at::zeros` | `at::zeros` (compat层) | API 完全一致 | - |
| 65 | `at::vstack` | `at::vstack` (compat层) | API 完全一致 | - |
| 66 | `at::zeros` | `at::zeros` (compat层) | API 完全一致 | - |
| 66 | `at::zeros_like` | `at::zeros_like` (compat层) | API 完全一致 | - |
Comment thread doc/cpp_api_mapping_cn.md Outdated
Comment on lines 1215 to 1216
| 789 | `at::xor` | - | 功能缺失 | - |
| 790 | `at::zero` | - | 功能缺失 | - |
youge325 and others added 10 commits June 14, 2026 15:40
- Add VStackTest.cpp covering shape/dtype/exception cases:
  - Scalar (0D), small shape (1D/2D), large shape, zero-dim, all-ones, mixed dims
  - Dtype: kFloat, kDouble, kInt, kLong
  - Empty list exception handling
- Update cpp_api_mapping_cn.md: at::vstack from 功能缺失 to API完全一致

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@youge325 youge325 force-pushed the test/vstack-20260528 branch from 70c7b57 to 50b314d Compare June 28, 2026 20:34
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