Skip to content

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

Open
youge325 wants to merge 2 commits intoPaddlePaddle:developfrom
youge325:cAlign-weak-use-count
Open

[Cpp API Compatibility] Align TensorBase::weak_use_count with PyTorch#78809
youge325 wants to merge 2 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 Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@2140638). 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.

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.

3 participants