Glossary: Deep Learning Basics
reshape
Also written: squeeze, unsqueeze
`reshape` changes a tensor's grid while keeping its numbers in order (`-1` means work out this size). `unsqueeze(d)` adds a size-1 dimension and `squeeze()` removes them, for example adding a channel axis to images.