Back to Tensorflow

TfLiteNode

tensorflow/lite/g3doc/api_docs/c/struct/tf-lite-node.html

2.21.03.2 KB
Original Source

TfLiteNode

#include <common.h>

A structure representing an instance of a node.

Summary

This structure only exhibits the inputs, outputs, user defined data and some node properties (like statefulness), not other features like the type.

|

Public attributes

| | --- | | builtin_data | void *

Opaque data provided to the node if the node is a builtin. | | custom_initial_data | const void *

Custom initial data. | | custom_initial_data_size | int | | delegate | struct TfLiteDelegate *

The pointer to the delegate. | | inputs | TfLiteIntArray *

Inputs to this node expressed as indices into the simulator's tensors. | | intermediates | TfLiteIntArray *

intermediate tensors to this node expressed as indices into the simulator's tensors. | | might_have_side_effect | bool

Whether this op might have side effect (e.g. stateful op). | | outputs | TfLiteIntArray *

Outputs to this node expressed as indices into the simulator's tensors. | | temporaries | TfLiteIntArray *

Temporary tensors uses during the computations. | | user_data | void *

Opaque data provided by the node implementer through Registration.init. |

Public attributes

builtin_data

void * TfLiteNode::builtin_data

Opaque data provided to the node if the node is a builtin.

This is usually a structure defined in builtin_op_data.h

custom_initial_data

const void * TfLiteNode::custom_initial_data

Custom initial data.

This is the opaque data provided in the flatbuffer.

WARNING: This is an experimental interface that is subject to change.

custom_initial_data_size

int TfLiteNode::custom_initial_data_size

delegate

struct[TfLiteDelegate](/lite/api_docs/c/struct/tf-lite-delegate.html#struct_tf_lite_delegate)* TfLiteNode::delegate

The pointer to the delegate.

This is non-null only when the node is created by calling interpreter.ModifyGraphWithDelegate.

WARNING: This is an experimental interface that is subject to change.

inputs

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

Inputs to this node expressed as indices into the simulator's tensors.

intermediates

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

intermediate tensors to this node expressed as indices into the simulator's tensors.

might_have_side_effect

bool TfLiteNode::might_have_side_effect

Whether this op might have side effect (e.g. stateful op).

outputs

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

Outputs to this node expressed as indices into the simulator's tensors.

temporaries

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

Temporary tensors uses during the computations.

This usually contains no tensors, but ops are allowed to change that if they need scratch space of any sort.

user_data

void * TfLiteNode::user_data

Opaque data provided by the node implementer through Registration.init.