Tensor
An N-dimensional array of numbers.
Components components
Required: TensorData
Optional: ValueRange
Shown in shown-in
- TensorView
- BarChartView (for 1D tensors)
- DataframeView
API reference links api-reference-links
Example example
Simple tensor simple-tensor
"""Create and log a tensor."""
import numpy as np
import rerun as rr
tensor = np.random.randint(0, 256, (8, 6, 3, 5), dtype=np.uint8) # 4-dimensional tensor
rr.init("rerun_example_tensor", spawn=True)
# Log the tensor, assigning names to each dimension
rr.log("tensor", rr.Tensor(tensor, dim_names=("width", "height", "channel", "batch")))