-
Notifications
You must be signed in to change notification settings - Fork 53
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
转换规则 No. 309 #224
转换规则 No. 309 #224
Conversation
Thanks for your contribution! |
import torch | ||
y = torch.tensor([1, 1, 1, 0, 1]).type(torch.float32) | ||
x = torch.tensor([1, 2, 3, 0, 1]).type(torch.float32) | ||
result = torch.trapezoid(y, dx=2, dim=-1) |
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.
加两个 全部不指定关键字 的测试case吧
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.
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.
OK
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 Docs
#112
映射文档 PaddlePaddle/docs#6061
309 torch.trapezoid
PR APIs