Skip to content

fix api-doc related bugs test=develop test=document_preview#17360

Merged
lijianshe02 merged 10 commits intoPaddlePaddle:developfrom
lijianshe02:my-cool-stuff
May 23, 2019
Merged

fix api-doc related bugs test=develop test=document_preview#17360
lijianshe02 merged 10 commits intoPaddlePaddle:developfrom
lijianshe02:my-cool-stuff

Conversation

@lijianshe02
Copy link
Contributor

@lijianshe02 lijianshe02 commented May 13, 2019

fix the following nine api example docs: paddle.fluid.layers.open_files, paddle.fluid.layers.read_file, paddle.fluid.layers.mul, paddle.fluid.layers.reorder_lod_tensor_by_rank, paddle.fluid.WeightNormParamAttr, paddle.fluid.layers.is_empty, paddle.fluid.layers.Print, paddle.fluid.layers.has_inf, paddle.fluid.layers.has_nan

屏幕快照 2019-05-20 下午3 44 58
屏幕快照 2019-05-16 下午8 26 18
屏幕快照 2019-05-22 上午10 59 14
屏幕快照 2019-05-16 下午8 27 25
屏幕快照 2019-05-16 下午8 27 34
屏幕快照 2019-05-16 下午8 28 18
屏幕快照 2019-05-17 下午3 31 51
屏幕快照 2019-05-17 下午3 32 31

屏幕快照 2019-05-16 下午8 25 42

@lijianshe02 lijianshe02 requested a review from luotao1 May 17, 2019 06:49
shanyi15
shanyi15 previously approved these changes May 20, 2019


@autodoc()
#@autodoc()
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove line 2020.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

shanyi15
shanyi15 previously approved these changes May 21, 2019
.. code-block:: python

import paddle.fluid as fluid
from paddle.fluid.layers.control_flow import Print
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

from paddle.fluid.layers.control_flow import Print

input = fluid.layers.data(name="input", shape=[4, 32, 32], dtype="float32")
Print(input, message = "The content of input layer:")
Copy link
Contributor

Choose a reason for hiding this comment

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

Print -> fluid.layers. Print

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok


import paddle.fluid as fluid
from paddle.fluid.layers.control_flow import Print
from paddle.fluid.layers import Print
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove line 175.

Copy link
Contributor

@luotao1 luotao1 left a comment

Choose a reason for hiding this comment

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

LGTM

@lijianshe02 lijianshe02 merged commit 300bd75 into PaddlePaddle:develop May 23, 2019
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.

4 participants