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

⚠️ **This type is _unstable_ and may change significantly in a way that the data won't be backwards compatible.**
A view on a tensor of any dimensionality.

## Properties

### `slice_selection`
How to select the slice of the tensor to show.

* `width`: Which dimension to map to width.
* `height`: Which dimension to map to height.
* `indices`: Selected indices for all other dimensions.
* `slider`: Any dimension listed here will have a slider for the index.
### `scalar_mapping`
Configures how scalars are mapped to color.

* `mag_filter`: Filter used when zooming in on the tensor.
* `colormap`: How scalar values map to colors.
* `gamma`: Gamma exponent applied to normalized values before mapping to color.
### `view_fit`
Configures how the selected slice should fit into the view.

## API reference links
 * 🐍 [Python API docs for `TensorView`](https://ref.rerun.io/docs/python/stable/common/blueprint_views#rerun.blueprint.views.TensorView)

## Example

### Use a blueprint to create a TensorView.

snippet: views/tensor

<picture data-inline-viewer="snippets/views/tensor">
  <source media="(max-width: 480px)" srcset="https://static.rerun.io/tensor_view/04158807b970c16af7922698389b239b0575c436/480w.png">
  <source media="(max-width: 768px)" srcset="https://static.rerun.io/tensor_view/04158807b970c16af7922698389b239b0575c436/768w.png">
  <source media="(max-width: 1024px)" srcset="https://static.rerun.io/tensor_view/04158807b970c16af7922698389b239b0575c436/1024w.png">
  <source media="(max-width: 1200px)" srcset="https://static.rerun.io/tensor_view/04158807b970c16af7922698389b239b0575c436/1200w.png">
  <img src="https://static.rerun.io/tensor_view/04158807b970c16af7922698389b239b0575c436/full.png">
</picture>


## Visualized archetypes

* [`Tensor`](../archetypes/tensor.md)

