未验证 提交 7c3fa5ff 编写于 作者: M mamingjie-China 提交者: GitHub

fix doc bug in cast OP, change 'float15' to 'float16' in support dtypes

raw doc: bool, float15, float32, float64, int8, int32, int64, uint8.
new doc: bool, float16, float32, float64, int8, int32, int64, uint8. 
上级 0bbad002
...@@ -164,7 +164,7 @@ def cast(x, dtype): ...@@ -164,7 +164,7 @@ def cast(x, dtype):
x(Variable): An input N-D Tensor with data type bool, float16, x(Variable): An input N-D Tensor with data type bool, float16,
float32, float64, int32, int64, uint8. float32, float64, int32, int64, uint8.
dtype(np.dtype|core.VarDesc.VarType|str): Data type of the output: dtype(np.dtype|core.VarDesc.VarType|str): Data type of the output:
bool, float15, float32, float64, int8, int32, int64, uint8. bool, float16, float32, float64, int8, int32, int64, uint8.
Returns: Returns:
Variable: A Tensor with the same shape as input's. Variable: A Tensor with the same shape as input's.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册