Class Layer

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 layer.

C#
Copy
public class Layer : IDisposable
Inheritance
Layer
Remarks

Use this class to create neural network layer. layer must be released using Dispose(), if not added to a model. If added to a model by AddLayer method of Model, layer is available until the model is released. so Dispose() must never be used.

Constructors

View Source

Layer(NNTrainerLayerType)

Creates a neural network layer.

Declaration
C#
Copy
public Layer(NNTrainerLayerType type)
Parameters
Type Name Description
NNTrainerLayerType type

The nntrainer layer type.

API Level: 10

Methods

View Source

Dispose()

Releases any unmanaged resources used by this object.

Declaration
C#
Copy
public void Dispose()
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.

API Level: 10
View Source

Finalize()

Frees the neural network layer.

Declaration
C#
Copy
protected void Finalize()
Remarks

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

API Level: 10
View Source

SetProperty(String[])

Sets the neural network layer Property.

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

property for layer.

Remarks

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

API Level: 10

Extension Methods