Class Optimizer

Definition

Namespace:
Tizen.MachineLearning.Train
Assembly:
Tizen.MachineLearning.Train.dll
API Level:
10
Feature:
http://tizen.org/feature/machine_learning.training

Creates a neural network optimizer.

C#
Copy
public class Optimizer : IDisposable
Inheritance
System.Object
Optimizer
Implements
System.IDisposable
Remarks

Use this class to create neural network optimizer. If not set to model, optimizer should be released using Dispose(). If set to a model, optimizer is available until model is released.

Constructors

View Source

Optimizer(NNTrainerOptimizerType)

Creates a neural network optimizer.

Declaration
C#
Copy
public Optimizer(NNTrainerOptimizerType type)
Parameters
Type Name Description
NNTrainerOptimizerType type

The nntrainer optimizer type.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when the method failed due to an invalid parameter.

System.InvalidOperationException

Thrown when the method failed due to the wrong pipeline description or internal error.

API Level: 10

Methods

View Source

Dispose()

Releases any unmanaged resources used by this object.

Declaration
C#
Copy
public void Dispose()
Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when the method failed due to an invalid parameter.

System.InvalidOperationException

Thrown when the method failed due to the wrong pipeline description or internal error.

API Level: 10
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.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when the method failed due to an invalid parameter.

System.InvalidOperationException

Thrown when the method failed due to the wrong pipeline description or internal error.

API Level: 10
View Source

Finalize()

Frees the neural network optimizer.

Declaration
C#
Copy
protected void Finalize()
Remarks

Use this method to destroy neural network optimizer. Fails if layer is owned by a model.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when the method failed due to an invalid parameter.

System.InvalidOperationException

Thrown when the method failed due to the wrong pipeline description or internal error.

API Level: 10
View Source

SetProperty(String[])

Sets the neural network optimizer property

Declaration
C#
Copy
public void SetProperty(params string[] property)
Parameters
Type Name Description
System.String[] property

property for optimizer.

Remarks

Use this method to set neural network optimizer property. The input format of property must be 'key = value' format.

Exceptions
Type Condition
System.NotSupportedException

Thrown when the feature is not supported.

System.ArgumentException

Thrown when the method failed due to an invalid parameter.

System.InvalidOperationException

Thrown when the method failed due to the wrong pipeline description or internal error.

API Level: 10

Implements

System.IDisposable