Tensor
A Tensor is an array of numbers with a defined shape. Studio uses Tensors for latent data: a model's numeric representation of media that other compatible Nodes can process.
For example, connect Wan VAE Encode to Wan 2 VAE Decode. The encoder turns a Video into a Tensor; the decoder turns that Tensor into a viewable Video.
Work with latent data
- Connect a Video output to Video on Wan VAE Encode.
- Connect the encoder's Latent output to Latent on Wan 2 VAE Decode.
- Choose the decoder's Fps, then run it to view the result.
The Wan2.1 latent format represents video frames; it does not include the original soundtrack. Keep the audio separately if you need it afterwards. Encoding can also pad the picture or repeat the final frame to meet the model's alignment requirements; see the encoder's reference for details.
Compatible Wan generation Nodes also expose latent connections through their Latent I/O Model Extension. Use these connections when you want to pass the model's representation between Nodes instead of converting it to video at each step.
Check the shape
A Tensor's shape lists the size of each axis. The receiving Node determines what those axes mean.
These Wan encoder and decoder Nodes use the shape [16, T, H, W]. The Wan VAE compression reference gives the exact compression ratios, padding, and normalization convention.
| Axis | Meaning |
|---|---|
16 | The model's latent channels. This is not the number of color channels in a video. |
T | The number of time positions in the latent. |
H | The latent height. |
W | The latent width. |
For example, [16, 2, 8, 8] is a Wan latent that decodes to a 64 × 64 video with five frames. The decoder's frame rate determines how long those frames play.
The Tensor type alone does not establish model compatibility. A Tensor with a different shape or a different model's representation cannot substitute for a normalized Wan latent just because both ports say Tensor.
Limits
Tensor elements use 32-bit floating-point numbers. Every axis must have a positive size; a zero-length axis is invalid. Particular Nodes impose additional shape and processing limits.
Storage grows with the product of the axis sizes. Each element accounts for four bytes, plus size information for the axes. The shared value-size limit also applies, and a Run can reach its overall processing limit before an individual Tensor reaches that limit.
A Tensor is separate from Image, Video, and Audio. Use a compatible encoder or decoder to convert between them. Changing a wire's destination does not perform that conversion.