---
title: "TensorBuffer"
---
<!-- DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/docs/website.rs -->

The underlying storage for [`archetypes.Tensor`](https://rerun.io/docs/reference/types/archetypes/tensor).

Tensor elements are stored in a contiguous buffer of a single type.

## Variants
#### `U8` = 1
Type: non-null List of `UInt8`

8bit unsigned integer.

#### `U16` = 2
Type: non-null List of `UInt16`

16bit unsigned integer.

#### `U32` = 3
Type: non-null List of `UInt32`

32bit unsigned integer.

#### `U64` = 4
Type: non-null List of `UInt64`

64bit unsigned integer.

#### `I8` = 5
Type: non-null List of `Int8`

8bit signed integer.

#### `I16` = 6
Type: non-null List of `Int16`

16bit signed integer.

#### `I32` = 7
Type: non-null List of `Int32`

32bit signed integer.

#### `I64` = 8
Type: non-null List of `Int64`

64bit signed integer.

#### `F16` = 9
Type: non-null List of `Float16`

16bit IEEE-754 floating point, also known as `half`.

#### `F32` = 10
Type: non-null List of `Float32`

32bit IEEE-754 floating point, also known as `float` or `single`.

#### `F64` = 11
Type: non-null List of `Float64`

64bit IEEE-754 floating point, also known as `double`.


## Arrow datatype
```
Union(Dense,
    0: ("_null_markers": Null)
    1: ("U8": non-null List(non-null UInt8))
    2: ("U16": non-null List(non-null UInt16))
    3: ("U32": non-null List(non-null UInt32))
    4: ("U64": non-null List(non-null UInt64))
    5: ("I8": non-null List(non-null Int8))
    6: ("I16": non-null List(non-null Int16))
    7: ("I32": non-null List(non-null Int32))
    8: ("I64": non-null List(non-null Int64))
    9: ("F16": non-null List(non-null Float16))
    10: ("F32": non-null List(non-null Float32))
    11: ("F64": non-null List(non-null Float64))
)
```

## API reference links
 * 🌊 [C++ API docs for `TensorBuffer`](https://ref.rerun.io/docs/cpp/stable/structrerun_1_1datatypes_1_1TensorBuffer.html)
 * 🐍 [Python API docs for `TensorBuffer`](https://ref.rerun.io/docs/python/stable/common/datatypes#rerun.datatypes.TensorBuffer)
 * 🦀 [Rust API docs for `TensorBuffer`](https://docs.rs/rerun/latest/rerun/datatypes/enum.TensorBuffer.html)


## Used by

* [`TensorData`](../datatypes/tensor_data.md)
