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

add new empty_like op (PR #27287) doc #2636

Merged
merged 1 commit into from
Sep 21, 2020

Conversation

windstamp
Copy link
Contributor

add new empty_like op (PaddlePaddle/Paddle#27287) doc (Chinese version)。

@paddle-bot-old
Copy link

Thanks for your contribution!

.. py:function:: paddle.empty_like(shape, dtype=None, name=None)


该OP根据``x``的shape和数据类型``dtype``创建未初始化的Tensor。如果``dtype''为None,则Tensor的数据类型与``x''相同。
Copy link
Collaborator

Choose a reason for hiding this comment

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

``x`` 等特殊格式前后要有空格。

Copy link
Contributor Author

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。
Copy link
Collaborator

Choose a reason for hiding this comment

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

标点符号不要中英文混用。

Copy link
Contributor Author

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 包含了英文符号吧?

Copy link
Collaborator

@jzhang533 jzhang533 left a comment

Choose a reason for hiding this comment

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

lgtm

@windstamp
Copy link
Contributor Author

image

@jzhang533 jzhang533 merged commit a03d225 into PaddlePaddle:develop Sep 21, 2020
RichardWooSJTU pushed a commit to RichardWooSJTU/docs that referenced this pull request Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants