-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[API compatibility] Add Tensor.is_cuda and paddle.Size #75043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
171f2b3 to
6521336
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以把
torch.Size([2, 3]).count(2)
torch.Size([2, 3]).index(3, 0)
这两种用法测一下
78674e8 to
c3817fc
Compare
Co-authored-by: Nyakku Shigure <[email protected]>
zhwesky2010
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #75043 +/- ##
==========================================
Coverage ? 96.49%
==========================================
Files ? 3
Lines ? 57
Branches ? 0
==========================================
Hits ? 55
Misses ? 2
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
zhwesky2010
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
看覆盖率还有一些没过,得加点pir下的单测
XiaoguangHu01
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR Category
User Experience
PR Types
New features
Description
Add Tensor.is_cuda and paddle.Size
pcard-67164