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 * 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 * TfLiteNode::inputs

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

intermediates

TfLiteIntArray * 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 * TfLiteNode::outputs

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

temporaries

TfLiteIntArray * 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.