Class CustomFilter
Definition
- Assembly:
- Tizen.MachineLearning.Inference.dll
The CustomFilter class provides interfaces to create a custom-filter in the pipeline.
C#
Copy
public class CustomFilter : IDisposable
- Inheritance
-
objectCustom
Filter
- 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
Declaration
C#
Copy
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
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 |
---|---|---|
string | name | The name of custom-filter |
Tensors |
inInfo | The input tensors information |
Tensors |
outInfo | The output tensors information |
System.Func<T, TResult><Tensors |
filter | Delegate to be called while processing the pipeline |
Returns
Type | Description |
---|---|
Custom |
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. |
Thrown when the feature is not supported. |
System. |
Thrown when the method failed due to an invalid parameter. |
Declaration
C#
Copy
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.
Dispose(bool)
Releases any unmanaged resources used by this object including opened handle.
Declaration
C#
Copy
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.