Co-authored-by: Enigma <monster@localhost.localdomain>
This commit is contained in:
booletic 2020-12-12 01:35:24 +04:00 committed by GitHub
parent 0cde386c56
commit 074592b3e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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\":"
]
},
{