Class Pipeline
Definition
- Namespace:
- Tizen.MachineLearning.Inference
- Assembly:
- Tizen.MachineLearning.Inference.dll
- API Level:
- 8
The Pipeline class provides interfaces to create and execute stream pipelines with neural networks.
C#Copypublic class Pipeline : IDisposable
- Inheritance
-
System.ObjectPipeline
- Implements
-
System.IDisposable
Constructors
Declaration
C#Copypublic Pipeline(string description)
Parameters
Type | Name | Description |
---|---|---|
System.String | description | The pipeline description. Refer to GStreamer manual or NNStreamer documentation for examples and the grammar. |
Remarks
http://tizen.org/privilege/mediastorage is needed if pipeline description is relevant to media storage.
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the feature is not supported. |
System.ArgumentException | Thrown when the method failed due to an invalid parameter. |
UnauthorizedAccessException | Thrown when the application does not have the required privilege. |
System.InvalidOperationException | Thrown when the method failed due to the wrong pipeline description or internal error. |
API Level: 8
Feature: http://tizen.org/feature/machine_learning.inference
Properties
Declaration
C#Copypublic PipelineState State { get; }
Property Value
Type | Description |
---|---|
PipelineState |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the feature is not supported. |
System.InvalidOperationException | Thrown when failed to get the pipeline state. |
API Level: 8
Methods
Declaration
C#Copypublic void Dispose()
API Level: 8
Dispose(Boolean)
Releases any unmanaged resources used by this object including opened handle.
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. |
API Level: 8
Declaration
C#Copyprotected void Finalize()
API Level: 8
Declaration
C#Copypublic Pipeline.Node GetNormal(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of normal node. |
Returns
Type | Description |
---|---|
Pipeline.Node | The normal node 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
Feature: http://tizen.org/feature/machine_learning.inference
Declaration
C#Copypublic Pipeline.SinkNode GetSink(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of sink node |
Returns
Type | Description |
---|---|
Pipeline.SinkNode | The sink node 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
Feature: http://tizen.org/feature/machine_learning.inference
Declaration
C#Copypublic Pipeline.SourceNode GetSource(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of source node |
Returns
Type | Description |
---|---|
Pipeline.SourceNode | The source node 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
Feature: http://tizen.org/feature/machine_learning.inference
Declaration
C#Copypublic Pipeline.SwitchNode GetSwitch(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of switch node. |
Returns
Type | Description |
---|---|
Pipeline.SwitchNode | The switch node 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
Feature: http://tizen.org/feature/machine_learning.inference
Declaration
C#Copypublic Pipeline.ValveNode GetValve(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of valve node |
Returns
Type | Description |
---|---|
Pipeline.ValveNode | The valve node 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
Feature: http://tizen.org/feature/machine_learning.inference
Start()
Starts the pipeline, asynchronously. (The state would be changed to PipelineState.Playing)
Declaration
C#Copypublic void Start()
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the feature is not supported. |
System.InvalidOperationException | Thrown when failed to start the pipeline. |
API Level: 8
Feature: http://tizen.org/feature/machine_learning.inference
Stop()
Stops the pipeline, asynchronously. (The state would be changed to PipelineState.Paused)
Declaration
C#Copypublic void Stop()
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the feature is not supported. |
System.InvalidOperationException | Thrown when failed to stop the pipeline. |
API Level: 8
Feature: http://tizen.org/feature/machine_learning.inference
Events
Declaration
C#Copypublic event EventHandler<StateChangedEventArgs> StateChanged
Event Type
Type | Description |
---|---|
System.EventHandler<StateChangedEventArgs> |