Class Layer
- Namespace
- OpenCvSharp.Dnn
- Assembly
- OpenCvSharp.dll
This interface class allows to build new Layers - are building blocks of networks.
public class Layer : Algorithm, IDisposable
- Inheritance
-
Layer
- Implements
- Inherited Members
Remarks
Each class, derived from Layer, must implement forward() method to compute outputs. Also before using the new layer into networks you must register your layer by using one of LayerFactory macros.
Properties
Blobs
List of learned parameters must be stored here to allow read them by using Net::getParam().
public Mat[] Blobs { get; set; }
Property Value
- Mat[]
Name
Name of the layer instance, can be used for logging or other internal purposes.
public string Name { get; }
Property Value
PreferableTarget
Preferred target for layer forwarding.
public Target PreferableTarget { get; }
Property Value
Type
Type name which was used for creating layer by layer factory.
public string Type { get; }
Property Value
Methods
OutputNameToIndex(string)
Returns index of output blob in output array.
public int OutputNameToIndex(string outputName)
Parameters
outputNamestringlabel of output blob