-
Notifications
You must be signed in to change notification settings - Fork 700
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
add new empty_like op (PR #27287) doc #2636
Conversation
Thanks for your contribution! |
b2897d3
to
adaa9fa
Compare
.. py:function:: paddle.empty_like(shape, dtype=None, name=None) | ||
|
||
|
||
该OP根据``x``的shape和数据类型``dtype``创建未初始化的Tensor。如果``dtype''为None,则Tensor的数据类型与``x''相同。 |
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.
``x`` 等特殊格式前后要有空格。
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.
thanks。已修改。
|
||
参数: | ||
- **x** (Tensor) – 输入Tensor, 输出Tensor和x具有相同的形状,x的数据类型可以是bool,float16,float32,float64,int32,int64。 | ||
- **dtype** (np.dtype|str, 可选)- 输出变量的数据类型,可以是bool, float16, float32, float64, int32, int64。若参数为None,则输出变量的数据类型和输入变量相同,默认值为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.
标点符号不要中英文混用。
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.
thanks。已修改。
应该就第 13 行 dtype 里面的 bool, float16, float32, float64, int32, int64 包含了英文符号吧?
adaa9fa
to
a8c1a22
Compare
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
a8c1a22
to
612020f
Compare
add new empty_like op (PaddlePaddle/Paddle#27287) doc (Chinese version)。