Click or drag to resize

Interpreter Class

https://www.emgu.com
The tensorflow lite interpreter.
Inheritance Hierarchy

Namespace:  Emgu.TF.Lite
Assembly:  Emgu.TF.Lite.Netstandard (in Emgu.TF.Lite.Netstandard.dll) Version: 2.8.0.1418
Syntax
public class Interpreter : UnmanagedObject

The Interpreter type exposes the following members.

Constructors
  NameDescription
Public methodInterpreter
Create a new tensorflow lite interpreter.
Public methodInterpreter(FlatBufferModel, IOpResolver)
Create an interpreter from a flatbuffer model
Top
Properties
  NameDescription
Public propertyDisposed
Returns true if the object has been disposed.
(Inherited from DisposableObject.)
Public propertyInputIndices
Get the list of tensor index of the inputs tensors.
Public propertyInputs
Get an array of all the input tensors
Public propertyNodeSize
Get the number of ops in the model.
Public propertyOutputIndices
Get the list of tensor index of the outputs tensors.
Public propertyOutputs
Get an array of all the output tensors
Public propertyPtr
Pointer to the unmanaged object
(Inherited from UnmanagedObject.)
Public propertyTensorSize
Get the number of tensors in the model.
Top
Methods
  NameDescription
Public methodAllocateTensors
Update allocations for all tensors. This will redim dependent tensors using the input tensor dimensionality as given. This is relatively expensive. If you know that your sizes are not changing, you need not call this.
Public methodBuild
Build the interpreter from a flatbuffer model
Public methodDispose
The dispose function that implements IDisposable interface
(Inherited from DisposableObject.)
Protected methodDisposeObject
Release all the unmanaged memory associated with this interpreter
(Overrides DisposableObjectDisposeObject.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Destructor
(Inherited from DisposableObject.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetTensor
Get a tensor data structure.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInvoke
Invoke the interpreter (run the whole graph in dependency order).
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodModifyGraphWithDelegate
Allow a delegate to look at the graph and modify the graph to handle parts of the graph themselves. After this is called, the graph may contain new nodes that replace 1 more nodes. WARNING: This is an experimental API and subject to change.
Protected methodReleaseManagedResources
Release the managed resources. This function will be called during the disposal of the current object. override ride this function if you need to call the Dispose() function on any managed IDisposable object created by the current object
(Inherited from DisposableObject.)
Public methodResizeInputTensor
Resize the input tensor
Public methodSetNumThreads
Set the number of threads available to the interpreter.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected field_ptr
A pointer to the unmanaged object
(Inherited from UnmanagedObject.)
Top
See Also