Skip to content

Commit 891c116

Browse files
committed
Refine the doc of reshape_op
1 parent 3099a8f commit 891c116

File tree

1 file changed

+4
-2
lines changed
  • python/paddle/fluid/layers

1 file changed

+4
-2
lines changed

python/paddle/fluid/layers/nn.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4904,8 +4904,10 @@ def reshape(x, shape, actual_shape=None, act=None, inplace=False, name=None):
49044904
name (str): The name of this layer. It is optional.
49054905
49064906
Returns:
4907-
Variable: The reshaped tensor variable. It is a new tensor variable if \
4908-
if :attr:`inplace` is :attr:`False`, otherwise it is :attr:`x`.
4907+
Variable: The reshaped tensor variable if :attr:`act` is None. It is a \
4908+
new tensor variable if :attr:`inplace` is :attr:`False`, \
4909+
otherwise it is :attr:`x`. If :attr:`act` is not None, return \
4910+
the activated tensor variable.
49094911
49104912
Raises:
49114913
TypeError: if actual_shape is neither Variable nor None.

0 commit comments

Comments
 (0)