-
Notifications
You must be signed in to change notification settings - Fork 839
Fix the structure of cn docs paddle.t & fix the annotation display on 5 cn docs #4402
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
Conversation
docs/api/paddle/t_cn.rst
Outdated
该OP对小于等于2维的Tensor进行数据转置。0维和1维Tensor返回本身,2维Tensor等价于perm设置为0,1的 :ref:`cn_api_fluid_layers_transpose` 函数。 | ||
|
||
参数: | ||
参数 | ||
:::::::: | ||
- **input** (Tensor) - 输入:N维(N<=2)Tensor,可选的数据类型为float16, float32, float64, int32, int64。 | ||
- **name** (str, 可选)- 该参数供开发人员打印调试信息时使用,具体用法请参见 :ref:`api_guide_Name` ,默认值为None |
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.
注意标点符号:
float16、float32、float64、int32、int64。
默认值为None。
docs/api/paddle/t_cn.rst
Outdated
|
||
**代码示例**: | ||
示例代码2 | ||
:::::::: | ||
|
||
.. code-block:: python |
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.
这两段示例代码合成一个吧,第一段是伪代码,建议修改,中英文的代码都需要修改,中文修改为引用英文代码
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.
已修改
docs/api/paddle/t_cn.rst
Outdated
# [[0.79000002, 0.63999999], | ||
# [0.83999997, 0.14000000], | ||
# [0.31999999, 0.56999999]] | ||
paddle.t(x).shape # [3, 2] |
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.
代码使用copy-from的方式,文档参考
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.
@Ligoml 已修改
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.
LGTM
issue list: