What it does
Reshape regroups the same numbers into a different shape, for example flattening a [C, H, W] feature map into one vector for a dense head, or splitting a [T, D] tensor into [T, heads, D/heads] for attention. Transpose reorders axes, such as moving channels last or swapping time and batch. These operations are bookkeeping: they cost little and learn nothing, but they make up a large share of the nodes in exported transformer graphs. Atlas hides the shape arithmetic that only computes their targets.
Formula
Flatten: [N, C, H, W] → [N, C·H·W]Transpose(perm): Y[iperm(0), …] = X[i0, …]Shapes and parameters
- Shapes
- Same number of elements in and out; only the arrangement of axes changes.
- Parameters
- None.
- Used for
- Between convolutional features and dense heads, inside every multi-head attention, around recurrent layers that expect time first, and at model outputs.
In WeightSpace
Read-only in WeightSpace today.
Where it appears
- Transcribe music into notesSpotify Basic Pitch12536K params
- Transcribe a short English recordingWav2Vec2 Base 960h10694M params
- Fill a gap in ChineseBERT Base Chinese89102M params
- Remove background noiseGTCRN8948K params
- Translate a Chinese sentenceHelsinki-NLP OPUS-MT84111M params
- Find a caption that fits a photoTinyCLIP ViT-8M/167823M params
- Detect objects in a photoNanoDet-Plus60942K params
- Name the emotion in a sentenceALBERT Base v2 Emotion5812M params
- Find an answer in a passageDistilBERT SQuAD5665M params
- Classify text with your labelsXtremeDistil zero-shot5013M params
- Find the most relevant answerall-MiniLM-L6-v25023M params
- Estimate depth from a photoDepth Anything V2 Small4625M params
- Find beats and downbeatsBeat This! Small433.2M params
- Change how a voice speakstiny-voca274.5M params
- Segment an object by clickingSlimSAM269.7M params
- Read a facial expressionOpenCV Zoo MobileFaceNet251.2M params
- Track a subject between framesOpenCV VitTrack25174K params
- Locate faces and facial landmarksYuNet2453K params
- Restore punctuation in a transcriptEdge-Punct-Casing247.4M params
- Find video shot changesTransNetV2227.6M params
- Recognize sounds in a recordingYAMNet224.0M params
- Track motion between two framesRAFT-Small22990K params
- Track the pitch of a soundCREPE Tiny22487K params
- Dream up an empty roomNanoDreamer2125M params
- Forecast a time seriesGranite TinyTimeMixer R221805K params
- Generate a frame between two photosPractical-RIFE 4.25205.7M params
- Ask a question about a tableGoogle TAPAS Tiny184.5M params
- Detect speech in a recordingSilero VAD18545K params
- Rerank search resultsMS MARCO TinyBERT-L2184.4M params
- Read text in an imageCRNN English168.4M params
- Track fingertips in a photoMediaPipe Hand Landmarker112.0M params
- Read a phrase aloudKokoro 82M1081M params
- Track body joints in a photoMediaPipe BlazePose84.3M params
- Turn a photo into a mosaicFast Neural Style Mosaic41.7M params
- Upscale a low-resolution photoESPCN360K params
- Find rows and cells in a tablePaddleOCR SLANet+21.9M params
- Separate a person from the backgroundPP-HumanSeg21.5M params
- Label a photo with ImageNetSqueezeNet 1.111.2M params
- Recognize 18 spoken wordsSpeech Commands 18w11.5M params
- Recognize a handwritten digitMNIST CNN16.0K params
- Recognize voice commandsSpeech Commands11.4M params