Show / Hide Table of Contents

    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.

    public class TensorsData : IDisposable
    Inheritance
    Object
    TensorsData
    Implements
    IDisposable

    Properties

    View Source

    Count

    Gets the number of Tensor in TensorsData class

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    Int32
    Exceptions
    Type Condition
    NotSupportedException

    Thrown when the feature is not supported.

    API Level: 6
    Feature: http://tizen.org/feature/machine_learning.inference

    Methods

    View Source

    Dispose()

    Releases any unmanaged resources used by this object.

    Declaration
    public 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
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    Boolean disposing

    If true, disposes any disposable objects. If false, does not dispose disposable objects.

    View Source

    Finalize()

    Destructor of the TensorsData instance

    Declaration
    protected void Finalize()
    API Level: 6
    View Source

    GetTensorData(Int32)

    Gets a tensor data to given index.

    Declaration
    public byte[] GetTensorData(int index)
    Parameters
    Type Name Description
    Int32 index

    The index of the tensor.

    Returns
    Type Description
    Byte[]

    Raw tensor data

    Exceptions
    Type Condition
    ArgumentException

    Thrown when the method failed due to an invalid parameter.

    NotSupportedException

    Thrown when the feature is not supported.

    API Level: 6
    Feature: http://tizen.org/feature/machine_learning.inference
    View Source

    SetTensorData(Int32, Byte[])

    Sets a tensor data to given index.

    Declaration
    public 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.

    Exceptions
    Type Condition
    ArgumentException

    Thrown when the method failed due to an invalid parameter.

    NotSupportedException

    Thrown when the feature is not supported.

    API Level: 6
    Feature: http://tizen.org/feature/machine_learning.inference

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2022 Samsung
    Generated by DocFX