#[repr(C)]pub struct TfLiteNode {
pub inputs: *mut TfLiteIntArray,
pub outputs: *mut TfLiteIntArray,
pub intermediates: *mut TfLiteIntArray,
pub temporaries: *mut TfLiteIntArray,
pub user_data: *mut c_void,
pub builtin_data: *mut c_void,
pub custom_initial_data: *const c_void,
pub custom_initial_data_size: c_int,
pub delegate: *mut TfLiteDelegate,
pub might_have_side_effect: bool,
}Expand description
A structure representing an instance of a node. This structure only exhibits the inputs, outputs, user defined data and some node properties (like statefulness), not other features like the type.
Fields§
§inputs: *mut TfLiteIntArrayInputs to this node expressed as indices into the simulator’s tensors.
outputs: *mut TfLiteIntArrayOutputs to this node expressed as indices into the simulator’s tensors.
intermediates: *mut TfLiteIntArrayintermediate tensors to this node expressed as indices into the simulator’s tensors.
temporaries: *mut TfLiteIntArrayTemporary 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: *mut c_voidOpaque data provided by the node implementer through Registration.init.
builtin_data: *mut c_voidOpaque 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 c_voidCustom 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: c_int§delegate: *mut TfLiteDelegateThe 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.
might_have_side_effect: boolWhether this op might have side effect (e.g. stateful op).
Trait Implementations§
Source§impl Clone for TfLiteNode
impl Clone for TfLiteNode
Source§fn clone(&self) -> TfLiteNode
fn clone(&self) -> TfLiteNode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more