Back to Tensorflow

TfLiteEvalTensor

tensorflow/lite/g3doc/api_docs/c/struct/tf-lite-eval-tensor.html

2.21.01.3 KB
Original Source

TfLiteEvalTensor

#include <common.h>

Light-weight tensor struct for TF Micro runtime.

Summary

Provides the minimal amount of information required for a kernel to run during TfLiteRegistration::Eval.

|

Public attributes

| | --- | | data | TfLitePtrUnion

A union of data pointers. | | dims | TfLiteIntArray *

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

The data type specification for data stored in data. |

Public attributes

data

[TfLitePtrUnion](/lite/api_docs/c/union/tf-lite-ptr-union.html#union_tf_lite_ptr_union)TfLiteEvalTensor::data

A union of data pointers.

The appropriate type should be used for a typed tensor based on type.

dims

[TfLiteIntArray](/lite/api_docs/c/struct/tf-lite-int-array.html#struct_tf_lite_int_array)* TfLiteEvalTensor::dims

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

type

[TfLiteType](/lite/api_docs/c/group/c-api-types.html#group __c__ api__types_1ga8a47ba81bdef28b5c479ee7928a7d123)TfLiteEvalTensor::type

The data type specification for data stored in data.

This affects what member of data union should be used.