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

【Hackathon 7th No.20】为 Paddle 新增 Tensor.set_ -part #6935

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

NKNaN
Copy link
Contributor

@NKNaN NKNaN commented Nov 7, 2024

Copy link

paddle-bot bot commented Nov 7, 2024

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

| source | source | 设置的目标 Tensor。 |
| storage_offset | offset | 表示距离内存数据起始位置的偏移量。Pytorch 是指偏移数字的个数,而 Paddle 是指偏移数字对应存储位置的偏移量(以 byte 为单位),需要转写。 |
| size | shape | 设置的目标形状, 仅参数名不一致。 |
| stride | stride | 设置的目标步长,。 |
Copy link
Collaborator

Choose a reason for hiding this comment

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

格式有点问题

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

Copy link
Collaborator

@sunzhongkai588 sunzhongkai588 left a comment

Choose a reason for hiding this comment

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

LGTM for docs

@luotao1 luotao1 merged commit ec2b043 into PaddlePaddle:develop Nov 14, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor PaddlePaddle Hackathon 飞桨黑客松活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants