Skip to content

[Cpp API Compatibility] Align TensorBase::weak_use_count with PyTorch#78809

Merged
SigureMo merged 4 commits intoPaddlePaddle:developfrom
youge325:cAlign-weak-use-count
Apr 30, 2026
Merged

[Cpp API Compatibility] Align TensorBase::weak_use_count with PyTorch#78809
SigureMo merged 4 commits intoPaddlePaddle:developfrom
youge325:cAlign-weak-use-count

Conversation

@youge325
Copy link
Copy Markdown
Contributor

@youge325 youge325 commented Apr 25, 2026

PR Category

Execute Infrastructure

PR Types

Bug fixes

Description

拆分自 #78707 ,weak_use_count 是 Pytorch instrusive_ptr 的特性,无法完全对齐,这里只对齐部分功能,不确定是否合入

是否引起精度变化

Copilot AI review requested due to automatic review settings April 25, 2026 08:00
@paddle-bot
Copy link
Copy Markdown

paddle-bot Bot commented Apr 25, 2026

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot Bot added the contributor External developers label Apr 25, 2026
@youge325 youge325 changed the title align TensorBase::weak_use_count with PyTorch [Cpp API Compatibility] Align TensorBase::weak_use_count with PyTorch Apr 25, 2026
Copy link
Copy Markdown
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@youge325
Copy link
Copy Markdown
Contributor Author

/re-run all-failed

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@b97d327). Learn more about missing BASE report.

Additional details and impacted files
@@             Coverage Diff             @@
##             develop    #78809   +/-   ##
===========================================
  Coverage           ?   100.00%           
===========================================
  Files              ?         1           
  Lines              ?         1           
  Branches           ?         0           
===========================================
  Hits               ?         1           
  Misses             ?         0           
  Partials           ?         0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
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

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


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

Copy link
Copy Markdown
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTMeow 🐾

@SigureMo SigureMo merged commit 6e68e2a into PaddlePaddle:develop Apr 30, 2026
87 of 89 checks passed
@youge325 youge325 deleted the cAlign-weak-use-count branch May 1, 2026 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants