Commit a1d4e62
Fix arange in docs. (#273)
In [the tutorial](https://pytorch.org/tutorials/beginner/blitz/neural_networks_tutorial.html),
`torch.arange` is being used as a FloatTensor. This behavior was changed
in pytorch/pytorch#7016 to return a LongTensor.
I removed the `torch.arange` usage and instead construct a tensor with
`torch.randn`1 parent edfde13 commit a1d4e62
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
0 commit comments