From 7bdb573d797e48599fe89e337ccc410e4266c406 Mon Sep 17 00:00:00 2001 From: Luo Tao Date: Mon, 11 Jun 2018 20:31:41 +0800 Subject: [PATCH] update with comments --- paddle/fluid/operators/elementwise_op.h | 2 +- python/paddle/fluid/layers/nn.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/paddle/fluid/operators/elementwise_op.h b/paddle/fluid/operators/elementwise_op.h index b666dc40b6..3876d26bb3 100644 --- a/paddle/fluid/operators/elementwise_op.h +++ b/paddle/fluid/operators/elementwise_op.h @@ -94,7 +94,7 @@ For example: shape(X) = (2, 3, 4, 5), shape(Y) = (,) shape(X) = (2, 3, 4, 5), shape(Y) = (5,) - shape(X) = (2, 3, 4, 5), shape(Y) = (4, 5) + shape(X) = (2, 3, 4, 5), shape(Y) = (4, 5), with axis=-1(default) or axis=2 shape(X) = (2, 3, 4, 5), shape(Y) = (3, 4), with axis=1 shape(X) = (2, 3, 4, 5), shape(Y) = (2), with axis=0 shape(X) = (2, 3, 4, 5), shape(Y) = (2, 1), with axis=0 diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index 35b1e799c3..dc4d18b789 100644 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -1409,7 +1409,7 @@ def sequence_pool(input, pool_type): def sequence_first_step(input): """ - This function get the first step of sequence. + This function gets the first step of sequence. .. code-block:: text @@ -1442,7 +1442,7 @@ def sequence_first_step(input): def sequence_last_step(input): """ - This function get the last step of sequence. + This function gets the last step of sequence. .. code-block:: text -- GitLab