PaddlePaddle / docs

Documentations for PaddlePaddle
https://www.paddlepaddle.org.cn/documentation/docs/zh/guides/index_cn.html
Apache License 2.0
238 stars 718 forks source link

Update torch.tensor_split.md #6732

Open Zhang-Zhenkun opened 3 months ago

Zhang-Zhenkun commented 3 months ago

indices_or_sections必须分开使用,indices和sections均可作为位置参数或关键字参数使用,num_or_indices不可分开使用。

paddle-bot[bot] commented 3 months ago

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

zhwesky2010 commented 2 months ago

这个是参数重载的方式,还是直接分两个API签名来写,第一个API签名是indices、第二个API签名是sections,你参考torch.max 的写法。

另外,修改comment直接在原分支上重新git push -f,不需要每次都关闭和重建RP。

这个分类应该算 仅参数名不一致

CLAassistant commented 1 week ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.