Loading 3D Tensor Playground...
Loading 3D Tensor Playground...
Learn tensors as stacks of 2D slices. Rotate the 3D view, inspect one plane at a time, and match every visual change to Python indexing.
Shape
[4, 6, 6]
144 total elements
Current axis
Depth
Axis 0
Current slice
0
Indices 0 to 3
Learning focus
Think of a tensor as a stack of 2D slices. Shape [D, H, W] tells you how many slices exist and how large each slice is.
Read the shape badge, then compare it to the preset.
shape [4, 6, 6]
144 elements in the tensor
Read the scene
The bright plane is the current slice. Drag to rotate. Hover or tap a voxel to lock its coordinates and value.
Current Slice
Axis 0 (Depth), index 0
Learn
Random Tensor
A simple 3D tensor with four depth layers and random values from 0 to 1.
Best for learning shape and slicing without extra domain context.
Control
Depth index
Move through one slice at a time. The other two dimensions stay visible in the preview.
Inspect
Python indexing
tensor[0, :, :] # shape [6, 6]
Depth slice 0 on axis 0, producing a 2D view of shape [6, 6].
Active selection
Hover or tap a voxel, or select a cell in the 2D slice preview, to inspect one exact tensor element.
Viridis color scale
0.0 to 1.0