From 2364a6bcb93e3850ad5a51680866615fec9c4a9b Mon Sep 17 00:00:00 2001 From: whisky-12 <79358023+whisky-12@users.noreply.github.com> Date: Mon, 20 Feb 2023 11:34:00 +0800 Subject: [PATCH] =?UTF-8?q?[note]=E4=B8=AD=E6=96=87=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E3=80=90=E5=BD=A2=E7=8A=B6=E3=80=91=E4=B8=AD=E7=BB=99=E5=87=BA?= =?UTF-8?q?=E4=BA=86=E5=90=84=E5=8F=82=E6=95=B0=E7=9A=84=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=EF=BC=8C=E8=8B=B1=E6=96=87=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E4=B8=AD=E6=B2=A1=E6=9C=89,=E6=9C=AC=E6=AC=A1pr=E5=AF=B9?= =?UTF-8?q?=E6=AD=A4=E4=BF=AE=E5=A4=8D=20(#49594)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/paddle/nn/layer/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/nn/layer/common.py b/python/paddle/nn/layer/common.py index 6c3185934a..73e0b458d7 100644 --- a/python/paddle/nn/layer/common.py +++ b/python/paddle/nn/layer/common.py @@ -114,8 +114,8 @@ class Linear(Layer): **bias** (Parameter): the learnable bias of this layer. Shape: - - input: Multi-dimentional tensor with shape :math:`[batch\_size, *, in\_features]` . - - output: Multi-dimentional tensor with shape :math:`[batch\_size, *, out\_features]` . + - input: Multi-dimentional tensor with shape :math:`[batch\_size, *, in\_features]` . Its data types are float16, float32, float64 ,The default is float32 . + - output: Multi-dimentional tensor with shape :math:`[batch\_size, *, out\_features]` . The data type is the same as the input . Examples: .. code-block:: python -- GitLab