Skip to content

fix docs#27637

Merged
yaoxuefeng6 merged 4 commits intoPaddlePaddle:developfrom
yaoxuefeng6:fix_doc
Sep 29, 2020
Merged

fix docs#27637
yaoxuefeng6 merged 4 commits intoPaddlePaddle:developfrom
yaoxuefeng6:fix_doc

Conversation

@yaoxuefeng6
Copy link
Contributor

PR types

Others

PR changes

Docs

Describe

fix docs of roll, bmm, addmm, data_norm, meshgrid, flatten

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

zhiqiu
zhiqiu previously approved these changes Sep 28, 2020
Copy link
Contributor

@zhiqiu zhiqiu left a comment

Choose a reason for hiding this comment

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

LGTM for data_norm without core.ops since it is used in static graph only.

summary_decay_rate=0.9999999,
enable_scale_and_shift=False):
"""
:alias_main: paddle.static.nn.data_norm
Copy link
Contributor

Choose a reason for hiding this comment

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

不用加alias_main tag

Copy link
Contributor Author

Choose a reason for hiding this comment

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

我删掉

x = np.arange(image_shape[0] * image_shape[1] * image_shape[2] * image_shape[3]).reshape(image_shape) / 100.
x = x.astype('float32')
x = paddle.arange(end=image_shape[0] * image_shape[1] * image_shape[2] * image_shape[3])
img = paddle.reshape(x, image_shape) / 100
Copy link
Contributor

Choose a reason for hiding this comment

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

这样得到的img好像是全0的

Copy link
Contributor Author

Choose a reason for hiding this comment

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

是的 我去掉除法操作 主要体现shape变化就好

Copy link
Contributor

@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

@zhiqiu zhiqiu self-requested a review September 29, 2020 07:37
@phlrain phlrain self-requested a review September 29, 2020 08:16
@yaoxuefeng6 yaoxuefeng6 merged commit cefb49a into PaddlePaddle:develop Sep 29, 2020
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.

3 participants