Click or drag to resize

Tensor Class

https://www.emgu.com
A tensorflow lite tensor
Inheritance Hierarchy

Namespace:  Emgu.TF.Lite
Assembly:  Emgu.TF.Lite (in Emgu.TF.Lite.dll) Version: 2.19.0.1709+574f567263f3c76bb77304b9eeb79ab6660ba101
Syntax
public class Tensor : UnmanagedObject

The Tensor type exposes the following members.

Constructors
  NameDescription
Public methodTensor
Create a Tensor from the native tensorflow lite tensor pointer
Top
Properties
  NameDescription
Public propertyAllocationType
How memory is mapped kTfLiteMmapRo: Memory mapped read only. i.e. weights kTfLiteArenaRw: Arena allocated read write memory (i.e. temporaries, outputs).
Public propertyByteSize
The number of bytes required to store the data of this Tensor. I.e. (bytes of each element) * dims[0] * ... * dims[n-1]. For example, if type is kTfLiteFloat32 and dims = {3, 2} then bytes = sizeof(float) * 3 * 2 = 4 * 3 * 2 = 24.
Public propertyData
Get a copy of the tensor data as a managed array
Public propertyDataPointer
A raw data pointers.
Public propertyDims
Get the size of the dimensions of the tensor
Public propertyDisposed
Returns true if the object has been disposed.
(Inherited from DisposableObject.)
Public propertyJaggedData
Get the tensor data as a jagged array
Public propertyName
Name of this tensor.
Public propertyPtr
Pointer to the unmanaged object
(Inherited from UnmanagedObject.)
Public propertyQuantizationParams
Quantization information.
Public propertyType
The data type specification for data stored in `data`. This affects what member of `data` union should be used.
Top
Methods
  NameDescription
Public methodDispose
The dispose function that implements IDisposable interface
(Inherited from DisposableObject.)
Protected methodDisposeObject
Release all the unmanaged memory associated with this model
(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 methodGetData
Get a copy of the tensor data as a managed array
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
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 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