# tfliteevaltensor

Evaluation-time tensor data, dimensions and type.

## TfLiteEvalTensor

`struct` · `cpp`

```cpp
struct TfLiteEvalTensor
```

Light-weight tensor struct for TF Micro runtime. Provides the minimal amount of information required for a kernel to run during TfLiteRegistration::Eval. TODO(b/160955687): Move this field into TF_LITE_STATIC_MEMORY when TFLM builds with this flag by default internally.

Source: `tensorflow/lite/core/c/common.h:753`

### TfLiteEvalTensor::data

`attribute` · `cpp`

```cpp
TfLitePtrUnion data
```

A union of data pointers. The appropriate type should be used for a typed tensor based on `type`.

Source: `tensorflow/lite/core/c/common.h:756`

### TfLiteEvalTensor::dims

`attribute` · `cpp`

```cpp
TfLiteIntArray * dims
```

A pointer to a structure representing the dimensionality interpretation that the buffer should have.

Source: `tensorflow/lite/core/c/common.h:760`

### TfLiteEvalTensor::type

`attribute` · `cpp`

```cpp
TfLiteType type
```

The data type specification for data stored in `data`. This affects what member of `data` union should be used.

Source: `tensorflow/lite/core/c/common.h:764`
