Skip to content

Glossary: Computer Vision Basics

permute

Also written: unsqueeze, squeeze

Tensor shape operations. `permute` reorders axes, as in turning (H, W, C) into (C, H, W). `unsqueeze(0)` adds a batch axis, and `squeeze(1)` removes an axis of size 1.

Where the book teaches it

Related terms

channels-first shape (N, C, H, W)uint8