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
-
System.ObjectTensorsData
- Implements
-
System.IDisposable
Properties
Declaration
C#Copypublic int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the feature is not supported. |
API Level: 6
Feature: http://tizen.org/feature/machine_learning.inference
Methods
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 |
---|---|---|
System.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 |
---|---|---|
System.Int32 | index | The index of the tensor. |
Returns
Type | Description |
---|---|
System.Byte[] | Raw tensor data |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when the method failed due to an invalid parameter. |
System.NotSupportedException | Thrown when the feature is not supported. |
API Level: 6
Feature: http://tizen.org/feature/machine_learning.inference
Declaration
C#Copypublic void SetTensorData(int index, byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the tensor. |
System.Byte[] | buffer | Raw tensor data to be set. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when the method failed due to an invalid parameter. |
System.NotSupportedException | Thrown when the feature is not supported. |
API Level: 6
Feature: http://tizen.org/feature/machine_learning.inference
Implements
System.IDisposable