Co-authored-by: Enigma <monster@localhost.localdomain>
This commit is contained in:
booleticandEnigma authored and GitHub committed 2020-12-11 13:35:24 -08:00
1 parent 0cde386c56
commit 074592b3e6
1 file changed
+1 -1
+1 -1
View File
@@ -3607,7 +3607,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"We already have our dependent variables `x`—these are the images themselves. We'll concatenate them all into a single tensor, and also change them from a list of matrices (a rank-3 tensor) to a list of vectors (a rank-2 tensor). We can do this using `view`, which is a PyTorch method that changes the shape of a tensor without changing its contents. `-1` is a special parameter to `view` that means \"make this axis as big as necessary to fit all the data\":"
"We already have our independent variables `x`—these are the images themselves. We'll concatenate them all into a single tensor, and also change them from a list of matrices (a rank-3 tensor) to a list of vectors (a rank-2 tensor). We can do this using `view`, which is a PyTorch method that changes the shape of a tensor without changing its contents. `-1` is a special parameter to `view` that means \"make this axis as big as necessary to fit all the data\":"
]
},
{