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().
- Name
Name of the layer instance, can be used for logging or other internal purposes.
- PreferableTarget
Preferred target for layer forwarding.
- Type
Type name which was used for creating layer by layer factory.
Methods
- OutputNameToIndex(string)
Returns index of output blob in output array.