Skip to content
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定义