Class CustomFilter

    Definition

    Namespace:
    Tizen.MachineLearning.Inference
    Assembly:
    Tizen.MachineLearning.Inference.dll

    The CustomFilter class provides interfaces to create a custom-filter in the pipeline.

    public class CustomFilter : IDisposable
    Inheritance
    object
    CustomFilter
    Implements
    System.IDisposable
    Remarks

    Because of data translation (i.e. marshaling and unmarshaling ) between Native and .Net Layer, CustomFilter class shows lower performance than native implementation.

    Properties

    View Source

    Name

    Gets or internally sets the name of the CustomFilter

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string
    Remarks

    Because of data translation (i.e. marshaling and unmarshaling ) between Native and .Net Layer, CustomFilter class shows lower performance than native implementation.

    Methods

    View Source

    Create(string, TensorsInfo, TensorsInfo, Func<TensorsData, TensorsData>)

    Creates new custom-filter with input and output tensors information.

    Declaration
    public static CustomFilter Create(string name, TensorsInfo inInfo, TensorsInfo outInfo, Func<TensorsData, TensorsData> filter)
    Parameters
    Type Name Description
    string name

    The name of custom-filter

    TensorsInfo inInfo

    The input tensors information

    TensorsInfo outInfo

    The output tensors information

    System.Func<T, TResult><TensorsData, TensorsData> filter

    Delegate to be called while processing the pipeline

    Returns
    Type Description
    CustomFilter

    CustomFiter instance

    Remarks

    Because of data translation (i.e. marshaling and unmarshaling ) between Native and .Net Layer, CustomFilter class shows lower performance than native implementation.

    Exceptions
    Type Condition
    System.NotSupportedException

    Thrown when the feature is not supported.

    System.ArgumentException

    Thrown when the method failed due to an invalid parameter.

    View Source

    Dispose()

    Releases any unmanaged resources used by this object.

    Declaration
    public void Dispose()
    Remarks

    Because of data translation (i.e. marshaling and unmarshaling ) between Native and .Net Layer, CustomFilter class shows lower performance than native implementation.

    View Source

    Dispose(bool)

    Releases any unmanaged resources used by this object including opened handle.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

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

    Remarks

    Because of data translation (i.e. marshaling and unmarshaling ) between Native and .Net Layer, CustomFilter class shows lower performance than native implementation.

    Implements

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