Merge pull request #18 from okdolly/patch-2

x = torch.linspace(-5,5,200), size [200]
This commit is contained in:
Morvan
2018-02-26 11:22:03 +08:00
committed by GitHub

View File

@ -41,7 +41,7 @@
"metadata": {},
"outputs": [],
"source": [
"x = torch.linspace(-5, 5, 200) # x data (tensor), shape=(100, 1)\n",
"x = torch.linspace(-5, 5, 200) # x data (tensor), shape=(200, 1)\n",
"x = Variable(x)\n",
"x_np = x.data.numpy() # numpy array for plotting"
]