Class TensorsData
Definition
- Namespace:
- Tizen.MachineLearning.Inference
- Assembly:
- Tizen.MachineLearning.Inference.dll
- API Level:
- 6
The TensorsData class sets and gets the buffer data for each Tensor.
C#Copypublic class TensorsData : IDisposable
- Inheritance
-
TensorsData
Properties
Declaration
C#Copypublic int Count { get; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 6
Feature: http://tizen.org/feature/machine_learning.inference
Declaration
C#Copypublic TensorsInfo TensorsInfo { get; }
Property Value
Type | Description |
---|---|
TensorsInfo | The TensorsInfo instance |
API Level: 8
Feature: http://tizen.org/feature/machine_learning.inference
Methods
View Source
Allocate(TensorsInfo)
Allocates a new TensorsData instance with the given tensors information.
Declaration
C#Copypublic static TensorsData Allocate(TensorsInfo info)
Parameters
Type | Name | Description |
---|---|---|
TensorsInfo | info | TensorsInfo object which has Tensor information |
Returns
Type | Description |
---|---|
TensorsData | The TensorsInfo instance |
API Level: 8
Declaration
C#Copypublic void Dispose()
API Level: 6
View Source
Dispose(Boolean)
Releases any unmanaged resources used by this object. Can also dispose any other disposable objects.
Declaration
C#Copyprotected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | If true, disposes any disposable objects. If false, does not dispose disposable objects. |
Declaration
C#Copyprotected void Finalize()
API Level: 6
Declaration
C#Copypublic byte[] GetTensorData(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The index of the tensor. |
Returns
Type | Description |
---|---|
Byte[] | Raw tensor data |
API Level: 6
Feature: http://tizen.org/feature/machine_learning.inference
Declaration
C#Copypublic void SetTensorData(int index, byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The index of the tensor. |
Byte[] | buffer | Raw tensor data to be set. |