From 7f162b5e4fbd119d2ba6ee6a96ae317d0f0f940c Mon Sep 17 00:00:00 2001 From: Huihuang Zheng Date: Mon, 26 Apr 2021 15:48:12 +0800 Subject: [PATCH] Make assign Doc Same for creation.py and layers/tensor.py, test=document_fix (#32553) A follow up PR of #32420, we changed the doc of python/paddle/fluid/layers/tensor.py in that PR and we are changing python/paddle/tensor/creation.py in this PR. --- python/paddle/tensor/creation.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/paddle/tensor/creation.py b/python/paddle/tensor/creation.py index 4cf10f8a69c..1817ce8256d 100644 --- a/python/paddle/tensor/creation.py +++ b/python/paddle/tensor/creation.py @@ -1036,8 +1036,10 @@ def assign(x, output=None): The OP copies the :attr:`x` to the :attr:`output`. Parameters: - x (Tensor|numpy.ndarray|list|tuple|scalar): A tensor, numpy ndarray, tuple, list or scalar, - its data type supports float16, float32, float64, int32, int64, and bool. + x (Tensor|numpy.ndarray|list|tuple|scalar): A tensor, numpy ndarray, tuple/list of scalar, + or scalar. Its data type supports float16, float32, float64, int32, int64, and bool. + Note: the float64 data will be converted to float32 because of current platform protobuf + data limitation. output (Tensor, optional): A tensor. If :attr:`output` is None, a new tensor will be created as :attr:`output`. Default: None. -- GitLab