Tensor Class |
Namespace: Emgu.TF.Lite
The Tensor type exposes the following members.
Name | Description | |
---|---|---|
![]() | AllocationType |
How memory is mapped
kTfLiteMmapRo: Memory mapped read only.
i.e. weights
kTfLiteArenaRw: Arena allocated read write memory
(i.e. temporaries, outputs).
|
![]() | ByteSize |
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.
|
![]() | Data |
Get a copy of the tensor data as a managed array
|
![]() | DataPointer |
A raw data pointers.
|
![]() | Dims |
Get the size of the dimensions of the tensor
|
![]() | JaggedData |
Get the tensor data as a jagged array
|
![]() | Name |
Name of this tensor.
|
![]() | Ptr |
Pointer to the unmanaged object
(Inherited from UnmanagedObject.) |
![]() | QuantizationParams |
Quantization information.
|
![]() | Type |
The data type specification for data stored in `data`. This affects
what member of `data` union should be used.
|
Name | Description | |
---|---|---|
![]() | Dispose |
The dispose function that implements IDisposable interface
(Inherited from DisposableObject.) |
![]() | DisposeObject |
Release all the unmanaged memory associated with this model
(Overrides DisposableObjectDisposeObject.) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize |
Destructor
(Inherited from DisposableObject.) |
![]() | GetData |
Get a copy of the tensor data as a managed array
|
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ReleaseManagedResources |
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.) |
![]() | ToString | (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() | _ptr |
A pointer to the unmanaged object
(Inherited from UnmanagedObject.) |