Module cpp

Module cpp 

Source
Available on crate feature std only.
Expand description

Bindings generated by the cxx crate.

Modules§

utiltensor-ptr
Utility functions and structs used by the cxx bridge.

Structs§

EventTracermodule
EventTracer is a class that users can inherit and implement to log/serialize/stream etc.
MallocMemoryAllocator
Dynamically allocates memory using malloc() and frees all pointers at destruction time.
Modulemodule
A facade class for loading programs and executing methods within them.
Tensortensor-ptr
Redefinition of the Tensor.

Functions§

MallocMemoryAllocator_as_memory_allocator
Get a pointer to the base class MemoryAllocator.
MallocMemoryAllocator_new
Construct a new Malloc memory allocator.
Module_executemodule
Execute a specific method with the given input values and retrieve the output values. Loads the program and method before executing if needed.
Module_is_method_loadedmodule
Checks if a specific method is loaded.
Module_loadmodule
Load the program if needed.
Module_load_methodmodule
Load a specific method from the program and set up memory management if needed.
Module_method_metamodule
Get a method metadata struct by method name.
Module_method_namesmodule
Get a list of method names available in the loaded program.
Module_newmodule
Constructs an instance by loading a program from a file with specified memory locking behavior.
Module_num_methodsmodule
Get the number of methods available in the loaded program.
TensorPtr_newtensor-ptr
Create a new tensor pointer.

Type Aliases§

ArrayRefEValuemodule
A specification of ArrayRef<EValue>.
Errormodule
Cpp executorch error type.
HierarchicalAllocatormodule
Redefinition of the HierarchicalAllocator.
MemoryAllocator
Redefinition of the MemoryAllocator.
MethodMetamodule
Describes a method in an ExecuTorch program.
ModuleLoadModemodule
Enum to define loading behavior.
ProgramVerificationmodule
Types of validation that a Program can do before parsing the data.
ScalarTypetensor-ptr
Redefinition of the ScalarType.
TensorShapeDynamismtensor-ptr
Redefinition of the TensorShapeDynamism.
VecEValuemodule
A vector of EValue.