-
Notifications
You must be signed in to change notification settings - Fork 716
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
Update torch.tensor_split.md #6733
base: develop
Are you sure you want to change the base?
Conversation
indices_or_sections必须分开成indices和sections使用,且均可作为位置参数或关键字参数,num_or_indices不可分开。
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6733.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
@@ -1,4 +1,4 @@ | |||
## [ 仅参数名不一致 ]torch.tensor_split | |||
## [ 输入参数用法不一致 ]torch.tensor_split |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个是参数重载的方式,还是直接分两个API签名来写,第一个API签名是indices、第二个API签名是sections,你参考torch.max
的写法。
另外,修改comment直接在原分支上重新git push -f,不需要每次都关闭和重建RP。
@@ -1,4 +1,4 @@ | |||
## [ 仅参数名不一致 ]torch.tensor_split | |||
## [ 输入参数用法不一致 ]torch.tensor_split |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
分类应为 仅参数名不一致
|
indices_or_sections必须分开成indices和sections使用,且均可作为位置参数或关键字参数,num_or_indices不可分开。