Skip to content

Issue #2, make it compatible with later version #10

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 2 commits 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 02_DL_meets_PyTorch/初识PyTorch basics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@
"metadata": {},
"outputs": [],
"source": [
"x = torch.linspace(0, 100).type(torch.FloatTensor) #linspace可以生成0-100之间的均匀的100个数字\n",
"x = torch.linspace(0, 99, steps=100).type(torch.FloatTensor) #linspace可以生成0-100之间的均匀的100个数字\n",
"rand = torch.randn(100) * 10 #随机生成100个满足标准正态分布的随机数,均值为0,方差为1.将这个数字乘以10,标准方差变为10\n",
"y = x + rand #将x和rand相加,得到伪造的标签数据y。所以(x,y)应能近似地落在y=x这条直线上"
]
Expand Down