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.97 #6149

Merged
merged 2 commits into from
Aug 29, 2023
Merged

映射文档 No.97 #6149

merged 2 commits into from
Aug 29, 2023

Conversation

co63oc
Copy link
Contributor

@co63oc co63oc commented Aug 29, 2023

PaddlePaddle/PaConvert#112

97 torch.Tensor.resize_as_

测试 PaddlePaddle/PaConvert#263

@paddle-bot
Copy link

paddle-bot bot commented Aug 29, 2023

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6149.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:飞桨文档预览工具


```python
# Pytorch 写法
y = a.resize_as_(b)
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个API是不是一个inplace的操作,更适合对应x.reshape_?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已修改

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 cb45418 into PaddlePaddle:develop Aug 29, 2023
1 check passed
@co63oc co63oc deleted the api100 branch September 7, 2023 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants