From cfe1b794108446d29869c1a2e1bd76923866b076 Mon Sep 17 00:00:00 2001 From: JeffersonQin <1247006353@qq.com> Date: Mon, 3 Aug 2020 03:06:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D2.4=E5=85=B3=E4=BA=8Erandn?= =?UTF-8?q?=E7=9A=84=E8=A7=A3=E9=87=8A=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/chapter2/2.4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/chapter2/2.4.md b/docs/chapter2/2.4.md index 39e8338..5ef40c4 100644 --- a/docs/chapter2/2.4.md +++ b/docs/chapter2/2.4.md @@ -50,4 +50,4 @@ short_points = torch.ones(10, 2).to(dtype=torch.short) points = torch.randn(10, 2) short_points = points.type(torch.short) ``` -上例的`randn`返回一个元素是0到1之间随机数的张量。 \ No newline at end of file +上例的`randn`返回一个张量,包含了从标准正态分布(均值为0,方差为1,即高斯白噪声)中抽取的一组随机数,张量的形状由参数sizes定义。 \ No newline at end of file