What it does
Concatenation places tensors next to each other along a chosen axis. Unlike addition it does not mix values: the next layer sees all inputs separately and learns how to combine them. U-Nets use it to bring fine detail from the encoder into the decoder, detectors use it to join features from several scales, and many graphs use it to assemble the final outputs or to join a class token to image patches.
Formula
Y = [X1 ; X2 ; …] along axis asizea(Y) = Σk sizea(Xk)Shapes and parameters
- Shapes
- Inputs that match on every axis except the join axis; the output size on that axis is the sum.
- Parameters
- None.
- Used for
- U-Net skip connections, Inception and SqueezeNet fire modules, feature pyramids, joining heads of multi-head attention after a reshape.
In WeightSpace
Read-only in WeightSpace today.
Where it appears
- Segment an object by clickingSlimSAM1659.7M params
- Find beats and downbeatsBeat This! Small1463.2M params
- Track motion between two framesRAFT-Small111990K params
- Change how a voice speakstiny-voca594.5M params
- Find what stands out in a photoU²-Net-p511.1M params
- Cut out a portraitMODNet226.5M params
- Remove background noiseGTCRN2248K params
- Find rows and cells in a tablePaddleOCR SLANet+211.9M params
- Transcribe music into notesSpotify Basic Pitch1936K params
- Dream up an empty roomNanoDreamer1825M params
- Detect objects in a photoNanoDet-Plus16942K params
- Read a phrase aloudKokoro 82M1481M params
- Find video shot changesTransNetV2127.6M params
- Recognize sounds in a recordingYAMNet114.0M params
- Label a photo with ImageNetSqueezeNet 1.181.2M params
- Generate a frame between two photosPractical-RIFE 4.2565.7M params
- Track the pitch of a soundCREPE Tiny6487K params
- Detect speech in a recordingSilero VAD4545K params
- Turn a photo into a mosaicFast Neural Style Mosaic41.7M params
- Restore punctuation in a transcriptEdge-Punct-Casing37.4M params
- Estimate depth from a photoDepth Anything V2 Small225M params
- Track body joints in a photoMediaPipe BlazePose24.3M params
- Track fingertips in a photoMediaPipe Hand Landmarker22.0M params
- Find a caption that fits a photoTinyCLIP ViT-8M/16123M params
- Find text regions on an imagePP-OCRv5 Mobile Detection11.2M params
- Separate a person from the backgroundPP-HumanSeg11.5M params
- Track a subject between framesOpenCV VitTrack1174K params