提交 998e2714 编写于 作者: G guosheng

Refine the doc of reshape_op by following comments.

  test=develop
上级 891c116e
...@@ -4894,13 +4894,13 @@ def reshape(x, shape, actual_shape=None, act=None, inplace=False, name=None): ...@@ -4894,13 +4894,13 @@ def reshape(x, shape, actual_shape=None, act=None, inplace=False, name=None):
than :attr:`shape`. than :attr:`shape`.
act (str): The non-linear activation to be applied to the reshaped tensor act (str): The non-linear activation to be applied to the reshaped tensor
variable. variable.
inplace(bool): If this flag is set true, reuse input :attr:`x` to reshape, inplace(bool): Must use :attr:`False` if :attr:`x` is used in multiple
which will change the shape of tensor variable :attr:`x`. operators. If this flag is set :attr:`True`, reuse input
Otherwise, preserve the shape :attr:`x` and create a new :attr:`x` to reshape, which will change the shape of
output tensor variable whose data is copied from input x tensor variable :attr:`x` and might cause errors when
but reshaped. Though setting to :attr:`True` will be more :attr:`x` is used in multiple operators. If :attr:`False`,
efficient, :attr:`False` is suggested when :attr:`x` are preserve the shape :attr:`x` and create a new output tensor
used in multiple operators. variable whose data is copied from input x but reshaped.
name (str): The name of this layer. It is optional. name (str): The name of this layer. It is optional.
Returns: Returns:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册