Skip to content

Conversation

@DongBaiYue
Copy link
Contributor

@DongBaiYue DongBaiYue commented Aug 8, 2025

Description

Added API compatibility with PyTorch by introducing alias parameter.

API param alias
torch.as_tensor place device
torch.finfo dtype type
torch.is_complex x input
torch.nn.functional.pad x input

关联Paddle PR:PaddlePaddle/Paddle#74456

@paddle-bot
Copy link

paddle-bot bot commented Aug 8, 2025

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

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.

格式修改一下

DongBaiYue and others added 7 commits August 11, 2025 11:46
Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
@zhangbo9674 zhangbo9674 merged commit 0b70412 into PaddlePaddle:develop Aug 12, 2025
2 checks passed
LittleHeroZZZX pushed a commit to LittleHeroZZZX/Paddle-docs that referenced this pull request Sep 1, 2025
…orch.nn.functional.pad (PaddlePaddle#7380)

* [API compatibility] torch.as_tensor, torch.finfo, torch.is_complex, torch.nn.functional.pad

* Update docs/api/paddle/finfo_cn.rst

Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>

* Update docs/api/paddle/to_tensor_cn.rst

Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>

* Update docs/api/paddle/to_tensor_cn.rst

Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>

* Update docs/api/paddle/finfo_cn.rst

Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>

* Update docs/api/paddle/is_complex_cn.rst

Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>

* Update docs/api/paddle/nn/functional/pad_cn.rst

Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>

* Update docs/api/paddle/is_complex_cn.rst

Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>

---------

Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
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.

3 participants