Skip to content

Conversation

@youge325
Copy link
Contributor

@youge325 youge325 commented Jan 8, 2026

新增 squeezeunsqueeze 接口测试
image

Copilot AI review requested due to automatic review settings February 6, 2026 02:55
Copy link
Contributor

Copilot AI left a comment

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 comprehensive test coverage for PyTorch's squeeze and unsqueeze tensor dimension manipulation APIs. These operations are fundamental for reshaping tensors by removing or adding dimensions of size 1.

Changes:

  • Added UnsqueezeTest.cpp with 5 test cases covering unsqueeze operations (regular and in-place variants)
  • Added SqueezeTest.cpp with 4 test cases covering squeeze operations (regular and in-place variants)

Reviewed changes

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

File Description
test/ops/UnsqueezeTest.cpp Implements tests for unsqueeze/unsqueeze_ APIs with positive/negative dimension indices and validates in-place operation behavior
test/ops/SqueezeTest.cpp Implements tests for squeeze/squeeze_ APIs with parameterless and dimension-specific variants and validates in-place operation behavior

💡 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.

1 participant