|
|
BinaryConvolutionLayer (const LayerParams &p) |
|
Creates a new BinaryConvolutionLayer instance.
|
|
BinaryConvolutionLayer & |
operator= (const BinaryConvolutionLayer &that) |
|
assignment operator
|
|
|
BinaryConvolutionLayer (const BinaryConvolutionLayer &that) |
|
copy constructor
|
|
|
BinaryConvolutionLayer (BinaryConvolutionLayer &&)=default |
|
move constructor
|
|
|
WeightableLayer (const LayerParams &prms) |
|
A default constructor. Constructs a WeightableLayer instance and initiates layer parameters with the given values. More...
|
|
|
CNNLayer (const LayerParams &prms) |
|
A constructor. Creates a new CNNLayer instance and initializes layer parameters with the given values. More...
|
|
virtual |
~CNNLayer ()=default |
|
A virtual destructor.
|
|
void |
fuse (Ptr &layer) |
|
Sets a layer to be fused with. More...
|
|
virtual const DataPtr |
input () const |
|
Returns the first element of the input data for this layer. More...
|
|
void |
validateLayer () |
|
Checks if the input data and layer data are legitimate.
|
|
float |
GetParamAsFloat (const char *param, float def) const |
|
Gets float value for the given parameter. More...
|
|
float |
GetParamAsFloat (const char *param) const |
|
Returns a float value for the given layer parameter. More...
|
|
std::vector< float > |
GetParamAsFloats (const char *param, std::vector< float > def) const |
|
Returns a vector of float values for the given parameter or returns the default value. More...
|
|
std::vector< float > |
GetParamAsFloats (const char *param) const |
|
Returns a vector of float values for the given parameter. More...
|
|
int |
GetParamAsInt (const char *param, int def) const |
|
Returns an integer value for the given parameter or returns the default value. More...
|
|
int |
GetParamAsInt (const char *param) const |
|
Returns an integer value for the given parameter. More...
|
|
std::vector< int > |
GetParamAsInts (const char *param, std::vector< int > def) const |
|
Returns a vector of int values for the given parameter or returns the default value. More...
|
|
std::vector< int > |
GetParamAsInts (const char *param) const |
|
Returns a vector of int values for the given parameter. More...
|
|
unsigned int |
GetParamAsUInt (const char *param, unsigned int def) const |
|
Returns an unsigned integer value for the given parameter or returns the default value. More...
|
|
unsigned int |
GetParamAsUInt (const char *param) const |
|
Returns an unsigned integer value for the given parameter. More...
|
|
std::vector< unsigned int > |
GetParamAsUInts (const char *param, std::vector< unsigned int > def) const |
|
Returns a vector of unsigned int values for the given parameter or returns the default value. More...
|
|
std::vector< unsigned int > |
GetParamAsUInts (const char *param) const |
|
Returns a vector of unsigned int values for the given parameter. More...
|
|
bool |
GetParamAsBool (const char *param, bool def) const |
|
Returns a boolean value for the given parameter. The valid values are (true, false, 1, 0). More...
|
|
bool |
GetParamAsBool (const char *param) const |
|
Returns a boolean value for the given parameter. More...
|
|
bool |
GetParamsAsBool (const char *param, bool def) const |
|
std::string |
GetParamAsString (const char *param, const char *def) const |
|
Returns a string value for the given parameter or returns the default one. More...
|
|
bool |
CheckParamPresence (const char *param) const |
|
Checks the param presence in the layer. More...
|
|
std::string |
GetParamAsString (const char *param) const |
|
Returns a string value for the given parameter. Throws exception if parameter was not found. More...
|
|
std::vector< std::string > |
GetParamAsStrings (const char *param, std::vector< std::string > def) const |
|
|
eBinaryConvolutionMode |
_mode = xnor_popcount |
|
Mode of binary convolution operation.
|
|
unsigned int |
_in_depth = 0u |
|
A number of input feature maps (size) generating the 3'rd input dimension.
|
|
float |
_pad_value = 0.0f |
|
A pad value which is used to fill pad area.
|
|
PropertyVector< unsigned int > |
_kernel |
|
A convolution kernel array [X, Y, Z, ...].
|
|
unsigned int & |
_kernel_x = _kernel .at(X_AXIS) |
|
unsigned int & |
_kernel_y = _kernel .at(Y_AXIS) |
|
PropertyVector< unsigned int > |
_padding |
|
A convolution paddings begin array [X, Y, Z, ...].
|
|
unsigned int & |
_padding_x = _padding .at(X_AXIS) |
|
unsigned int & |
_padding_y = _padding .at(Y_AXIS) |
|
PropertyVector< unsigned int > |
_pads_end |
|
A convolution paddings end array [X, Y, Z, ...].
|
|
PropertyVector< unsigned int > |
_stride |
|
A convolution strides array [X, Y, Z, ...].
|
|
unsigned int & |
_stride_x = _stride .at(X_AXIS) |
|
unsigned int & |
_stride_y = _stride .at(Y_AXIS) |
|
PropertyVector< unsigned int > |
_dilation |
|
A convolution dilations array [X, Y, Z, ...].
|
|
unsigned int & |
_dilation_x = _dilation .at(X_AXIS) |
|
unsigned int & |
_dilation_y = _dilation .at(Y_AXIS) |
|
unsigned int |
_out_depth = 0u |
|
A number of output feature maps (size) generating the 3'rd output dimension.
|
|
unsigned int |
_group = 1u |
|
Number of groups.
|
|
std::string |
_auto_pad |
|
Auto padding type.
|
|
Blob::Ptr |
_weights |
|
A pointer to a weights blob.
|
|
Blob::Ptr |
_biases |
|
A pointer to a biases blob.
|
|
std::string |
name |
|
Layer name.
|
|
std::string |
type |
|
Layer type.
|
|
Precision |
precision |
|
Layer base operating precision.
|
|
std::vector< DataPtr > |
outData |
|
A vector of pointers to the output data elements of this layer in the di-graph (order matters)
|
|
std::vector< DataWeakPtr > |
insData |
|
A vector of weak pointers to the input data elements of this layer in the di-graph (order matters)
|
|
Ptr |
_fusedWith |
|
If suggested to fuse - a pointer to the layer which needs to be fused with this layer.
|
|
UserValue |
userValue |
|
Convenience user values to store in this object as extra data.
|
|
std::string |
affinity |
|
Layer affinity set by user.
|
|
std::map< std::string, std::string > |
params |
|
Map of pairs: (parameter name, parameter value)
|
|
std::map< std::string, Blob::Ptr > |
blobs |
|
Map of pairs: (name, weights/biases blob)
|
|
This class represents a standard binary convolution layer.