Skip to content

修复2.4关于randn的解释错误 #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/chapter2/2.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -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之间随机数的张量
上例的`randn`返回一个张量,包含了从标准正态分布(均值为0,方差为1,即高斯白噪声)中抽取的一组随机数,张量的形状由参数sizes定义