From 7c3fa5ff27e3b36687d281ebf67fa959f18b8b0f Mon Sep 17 00:00:00 2001 From: mamingjie-China <52770436+mamingjie-China@users.noreply.github.com> Date: Mon, 13 Apr 2020 12:02:31 +0800 Subject: [PATCH] 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. --- python/paddle/fluid/layers/tensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/layers/tensor.py b/python/paddle/fluid/layers/tensor.py index a5c6344b9f..0f098c3707 100644 --- a/python/paddle/fluid/layers/tensor.py +++ b/python/paddle/fluid/layers/tensor.py @@ -164,7 +164,7 @@ def cast(x, dtype): x(Variable): An input N-D Tensor with data type bool, float16, float32, float64, int32, int64, uint8. 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: Variable: A Tensor with the same shape as input's. -- GitLab