Class CustomFilter

Definition

Namespace:
Tizen.MachineLearning.Inference
Assembly:
Tizen.MachineLearning.Inference.dll
API Level:
8

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

C#
Copy
public class CustomFilter : IDisposable
Inheritance
System.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
C#
Copy
public string Name { get; }
Property Value
Type Description
System.String

Methods

View Source

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

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

Declaration
C#
Copy
public static CustomFilter Create(string name, TensorsInfo inInfo, TensorsInfo outInfo, Func<TensorsData, TensorsData> filter)
Parameters
Type Name Description
System.String name

The name of custom-filter

TensorsInfo inInfo

The input tensors information

TensorsInfo outInfo

The output tensors information

Func<TensorsData, TensorsData> filter

Delegate to be called while processing the pipeline

Returns
Type Description
CustomFilter

CustomFiter instance

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when the method failed due to an invalid parameter.

API Level: 8
View Source

Dispose()

Releases any unmanaged resources used by this object.

Declaration
C#
Copy
public void Dispose()
API Level: 8
View Source

Dispose(Boolean)

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

Declaration
C#
Copy
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.

API Level: 8

Implements

System.IDisposable