未验证 提交 7b18c55b 编写于 作者: W wawltor 提交者: GitHub

fix the document of ones_like, zeros_like (#40233)

上级 55bfc6cb
......@@ -283,7 +283,7 @@ def ones_like(x, dtype=None, name=None):
Args:
x(Tensor): The input tensor which specifies shape and dtype. The
dtype of ``x`` can be bool, float16, float32, float64, int32, int64.
dtype(str|np.dtype|core.VarDesc.VarType, optional): The data type of the
dtype(str|np.dtype, optional): The data type of the
output tensor. Supported data types: bool, float16, float32, float64,
int32, int64. If ``dtype`` is None, the data type is the same as ``x``.
Default is None.
......@@ -358,7 +358,7 @@ def zeros_like(x, dtype=None, name=None):
Args:
x(Tensor): The input tensor which specifies shape and dtype. The
dtype of ``x`` can be bool, float16, float32, float64, int32, int64.
dtype(str|np.dtype|core.VarDesc.VarType, optional): The data type of the
dtype(str|np.dtype, optional): The data type of the
output tensor. Supported data types: bool, float16, float32, float64,
int32, int64. If ``dtype`` is None, the data type is the same as ``x``.
Default is None.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册