Skip to content
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

Merged
merged 1 commit into from
Aug 18, 2023
Merged

转换规则 No. 309 #224

merged 1 commit into from
Aug 18, 2023

Conversation

co63oc
Copy link
Contributor

@co63oc co63oc commented Aug 6, 2023

PR Docs

#112

映射文档 PaddlePaddle/docs#6061

309 torch.trapezoid

PR APIs

309 torch.trapezoid

@paddle-bot
Copy link

paddle-bot bot commented Aug 6, 2023

Thanks for your contribution!

@paddle-bot paddle-bot bot added contributor External developers status: proposed labels Aug 6, 2023
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Aug 7, 2023
@luotao1 luotao1 assigned dzhwinter, luotao1 and zhwesky2010 and unassigned dzhwinter Aug 7, 2023
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)
Copy link
Collaborator

@zhwesky2010 zhwesky2010 Aug 14, 2023

Choose a reason for hiding this comment

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

加两个 全部不指定关键字 的测试case吧

Copy link
Contributor Author

Choose a reason for hiding this comment

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

*后是需要指定关键字,dx,dim需要指定关键字
图片

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK

Copy link
Collaborator

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

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

LGTM

@zhwesky2010 zhwesky2010 merged commit 3f4dc9b into PaddlePaddle:master Aug 18, 2023
@co63oc co63oc deleted the api309 branch August 19, 2023 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource 快乐开源活动issue与PR status: proposed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants