pub struct BlankLayer { }
Expand description
§Partial List of Implemented Layers
This subsection of dnn module contains information about built-in layers and their descriptions.
Classes listed here, in fact, provides C++ API for creating instances of built-in layers.
In addition to this way of layers instantiation, there is a more common factory API (see [dnnLayerFactory]), it allows to create layers dynamically (by name) and register new ones.
You can use both API, but factory API is less convenient for native C++ programming and basically designed for use inside importers (see readNetFromCaffe, readNetFromTorch, readNetFromTensorflow).
Built-in layers partially reproduce functionality of corresponding Caffe and Torch7 layers.
In particular, the following layers and Caffe importer were tested to reproduce Caffe functionality:
- Convolution
- Deconvolution
- Pooling
- InnerProduct
- TanH, ReLU, Sigmoid, BNLL, Power, AbsVal
- Softmax
- Reshape, Flatten, Slice, Split
- LRN
- MVN
- Dropout (since it does nothing on forward pass -))
Clears the algorithm state
Reads algorithm parameters from a file storage
Stores algorithm parameters in a file storage
Stores algorithm parameters in a file storage
Read more
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
Return the underlying raw pointer while consuming this wrapper.
Read more
Return the underlying mutable raw pointer
Read more
Formats the value using the given formatter.
Read more
Forwards to infallible Self::default()
Executes the destructor for this type.
Read more
Converts to this type from the input type.
Converts to this type from the input type.
List of learned parameters must be stored here to allow read them by using Net::getParam().
Name of the layer instance, can be used for logging or other internal purposes.
Type name which was used for creating layer by layer factory.
prefer target for layer forwarding
Computes and sets internal parameters according to inputs, outputs and blobs.
Read more
👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs.
Read more
Given the @p input blobs, computes the output @p blobs.
Read more
Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation.
Read more
Given the @p input blobs, computes the output @p blobs.
Read more
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs.
Read more
👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs.
Read more
👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output.
Read more
Returns index of input blob into the input array.
Read more
Returns index of output blob in output array.
Read more
Ask layer if it support specific backend for doing computations.
Read more
Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case.
Read more
Try to fuse current layer with a next one
Read more
“Detaches” all the layers, attached to particular layer.
List of learned parameters must be stored here to allow read them by using Net::getParam().
Name of the layer instance, can be used for logging or other internal purposes.
Type name which was used for creating layer by layer factory.
prefer target for layer forwarding
Automatic Halide scheduling based on layer hyper-parameters.
Read more
Returns parameters of layers with channel-wise multiplication and addition.
Read more
Returns scale and zeropoint of layers
Read more
The type returned in the event of a conversion error.
Performs the conversion.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.