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

Fix API docs #6844

Merged
merged 5 commits into from
Sep 3, 2024
Merged

Fix API docs #6844

merged 5 commits into from
Sep 3, 2024

Conversation

Xuxuanang
Copy link
Contributor

修改api映射文档:
torch.hsplit
torch.Tensor.hsplit
torch.dsplit
torch.Tensor.dsplit
torch.tensor_split
torch.Tensor.tensor_split

Copy link

paddle-bot bot commented Aug 23, 2024

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


| PyTorch | PaddlePaddle | 备注 |
| ------------- | ------------ | ------------------------------------------------------ |
| tensor_indices_or_sections | num_or_indices | 表示分割的数量或索引,仅参数名不一致。 |
Copy link
Collaborator

Choose a reason for hiding this comment

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

对于torch传入Tensor的情况,paddle是不是不支持

tensor_indices_or_sections为Tensor

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

Choose a reason for hiding this comment

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

那是直接标注功能缺失吗

功能缺失是指整个API都缺失,这种算 输入参数类型不一致

| PyTorch | PaddlePaddle | 备注 |
| ------------- | ------------ | ------------------------------------------------------ |
| input | x | 表示输入的 Tensor ,仅参数名不一致。 |
| tensor_indices_or_sections | num_or_indices | 表示分割的数量或索引,仅参数名不一致。 |
Copy link
Collaborator

Choose a reason for hiding this comment

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

同上:

对于torch传入Tensor的情况,paddle是不是不支持

@zhwesky2010 zhwesky2010 merged commit df8e8b0 into PaddlePaddle:develop Sep 3, 2024
2 checks passed
Aoraki-Dream pushed a commit to Aoraki-Dream/docs that referenced this pull request Sep 4, 2024
* fix hsplit

* fix docs

* fix

* fix-docs1

* fix docs
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