23 #include "ie_layers_property.hpp"
46 using Ptr = std::shared_ptr<CNNLayer>;
86 precision(prms.precision), userValue({0}) {
107 if (insData.empty()) {
110 auto lockedFirstInsData = insData[0].lock();
111 if (!lockedFirstInsData) {
114 return lockedFirstInsData;
120 INFERENCE_ENGINE_API_CPP(
void) validateLayer();
130 return -std::numeric_limits<float>::infinity();
131 }
else if (str ==
"inf") {
132 return std::numeric_limits<float>::infinity();
135 std::stringstream val_stream(str);
136 val_stream.imbue(std::locale(
"C"));
147 std::stringstream val_stream;
148 val_stream.imbue(std::locale(
"C"));
150 return val_stream.str();
160 std::string val = GetParamAsString(param, ie_serialize_float(def).c_str());
162 return ie_parse_float(val);
164 THROW_IE_EXCEPTION <<
"Cannot parse parameter " << param <<
" from IR for layer " << name
165 <<
". Value " << val <<
" cannot be casted to float.";
175 std::string val = GetParamAsString(param);
177 return ie_parse_float(val);
179 THROW_IE_EXCEPTION <<
"Cannot parse parameter " << param <<
" from IR for layer " << name
180 <<
". Value " << val <<
" cannot be casted to float.";
191 std::string vals = GetParamAsString(param,
"");
192 std::vector<float> result;
193 std::istringstream stream(vals);
197 while (getline(stream, str,
',')) {
199 float val = ie_parse_float(str);
200 result.push_back(val);
202 THROW_IE_EXCEPTION <<
"Cannot parse parameter " << param <<
" " << str <<
" from IR for layer " << name
203 <<
". Value " << vals <<
" cannot be casted to floats.";
215 std::string vals = GetParamAsString(param);
216 std::vector<float> result;
217 std::istringstream stream(vals);
219 while (getline(stream, str,
',')) {
221 float val = ie_parse_float(str);
222 result.push_back(val);
224 THROW_IE_EXCEPTION <<
"Cannot parse parameter " << param <<
" " << str <<
" from IR for layer " << name
225 <<
". Value " << vals <<
" cannot be casted to floats.";
238 std::string val = GetParamAsString(param, std::to_string(def).c_str());
240 return std::stoi(val);
242 THROW_IE_EXCEPTION <<
"Cannot parse parameter " << param <<
" from IR for layer " << name
243 <<
". Value " << val <<
" cannot be casted to int.";
253 std::string val = GetParamAsString(param);
255 return std::stoi(val);
257 THROW_IE_EXCEPTION <<
"Cannot parse parameter " << param <<
" from IR for layer " << name
258 <<
". Value " << val <<
" cannot be casted to int.";
270 std::string vals = GetParamAsString(param,
"");
271 std::vector<int> result;
272 std::istringstream stream(vals);
276 while (getline(stream, str,
',')) {
278 result.push_back(std::stoi(str));
280 THROW_IE_EXCEPTION <<
"Cannot parse parameter " << param <<
" " << str <<
" from IR for layer " << name
281 <<
". Value " << vals <<
" cannot be casted to int.";
293 std::string vals = GetParamAsString(param);
294 std::vector<int> result;
295 std::istringstream stream(vals);
297 while (getline(stream, str,
',')) {
299 result.push_back(std::stoi(str));
301 THROW_IE_EXCEPTION <<
"Cannot parse parameter " << param <<
" " << str <<
" from IR for layer " << name
302 <<
". Value " << vals <<
" cannot be casted to int.";
314 std::string val = GetParamAsString(param, std::to_string(def).c_str());
315 std::string message =
"Cannot parse parameter " + std::string(param) +
" from IR for layer " + name
316 +
". Value " + val +
" cannot be casted to int.";
318 int value = std::stoi(val);
322 return static_cast<unsigned int>(value);
334 std::string val = GetParamAsString(param);
335 std::string message =
"Cannot parse parameter " + std::string(param) +
" from IR for layer " + name
336 +
". Value " + val +
" cannot be casted to unsigned int.";
338 int value = std::stoi(val);
342 return static_cast<unsigned int>(value);
355 std::vector<unsigned int>
GetParamAsUInts(
const char *param, std::vector<unsigned int> def)
const {
356 std::string vals = GetParamAsString(param,
"");
357 std::vector<unsigned int> result;
358 std::istringstream stream(vals);
360 std::string message =
"Cannot parse parameter " + std::string(param) +
" " + str +
" from IR for layer " + name
361 +
". Value " + vals +
" cannot be casted to unsigned int.";
364 while (getline(stream, str,
',')) {
366 int value = std::stoi(str);
370 result.push_back(static_cast<unsigned int>(value));
384 std::string vals = GetParamAsString(param);
385 std::vector<unsigned int> result;
386 std::istringstream stream(vals);
388 std::string message =
"Cannot parse parameter " + std::string(param) +
" " + str +
" from IR for layer " + name
389 +
". Value " + vals +
" cannot be casted to int.";
390 while (getline(stream, str,
',')) {
392 int value = std::stoi(str);
396 result.push_back(static_cast<unsigned int>(value));
411 std::string val = GetParamAsString(param, std::to_string(def).c_str());
412 std::string loweredCaseValue;
413 std::transform(val.begin(), val.end(), std::back_inserter(loweredCaseValue), [](
char value) {
414 return std::tolower(value);
419 if (!(std::istringstream(loweredCaseValue) >> std::boolalpha >> result)) {
421 return (GetParamAsInt(param, def) != 0);
432 std::string val = GetParamAsString(param);
433 std::string loweredCaseValue;
434 std::transform(val.begin(), val.end(), std::back_inserter(loweredCaseValue), [](
char value) {
435 return std::tolower(value);
440 if (!(std::istringstream(loweredCaseValue) >> std::boolalpha >> result)) {
442 return (GetParamAsInt(param) != 0);
451 INFERENCE_ENGINE_DEPRECATED
453 return GetParamAsBool(param, def);
463 auto it = params.find(param);
464 if (it == params.end() || it->second.empty()) {
476 auto it = params.find(param);
477 if (it == params.end()) {
490 auto it = params.find(param);
491 if (it == params.end()) {
497 std::vector<std::string> GetParamAsStrings(
const char *param, std::vector<std::string> def)
const {
498 std::string vals = GetParamAsString(param,
"");
499 std::vector<std::string> result;
500 std::istringstream stream(vals);
504 while (getline(stream, str,
',')) {
506 result.push_back(str);
508 THROW_IE_EXCEPTION <<
"Cannot parse parameter " << param <<
" from IR for layer " << name <<
".";
517 std::map<std::string, std::string>
params;
522 std::map<std::string, Blob::Ptr>
blobs;
559 #define DEFINE_PROP(prop_name) \
560 PropertyVector<unsigned int> prop_name;\
561 unsigned int &prop_name##_x = prop_name.at(X_AXIS);\
562 unsigned int &prop_name##_y = prop_name.at(Y_AXIS);\
592 unsigned int _out_depth = 0u;
596 unsigned int _group = 1u;
606 _kernel(2, 0u), _padding(2, 0u), _stride(2, 1u), _dilation(2, 1u) {}
612 WeightableLayer::operator=(that);
641 using ConvolutionLayer::operator=;
650 using ConvolutionLayer::operator=;
655 unsigned int _deformable_group = 1u;
700 bool _exclude_pad =
false;
710 _kernel(2, 0u), _padding(2, 0u), _stride(2, 0u) {}
717 CNNLayer::operator=(that);
761 unsigned int _in_depth = 0u;
766 float _pad_value = 0.0f;
791 unsigned int _out_depth = 0u;
795 unsigned int _group = 1u;
805 _kernel(2, 0u), _padding(2, 0u), _stride(2, 1u), _dilation(2, 1u) {}
811 WeightableLayer::operator=(that);
847 unsigned int _out_num = 0;
864 unsigned int _axis = 1;
882 unsigned int _axis = 1;
898 unsigned int _size = 0;
914 bool _isAcrossMaps =
false;
986 float negative_slope = 0.0f;
1003 float min_value = 0.0f;
1008 float max_value = 1.0f;
1026 using ClampLayer::ClampLayer;
1040 Sum = 0, Prod, Max, Sub, Min, Div, Squared_diff, Floor_mod, Pow,
1041 Equal, Not_equal, Less, Less_equal, Greater, Greater_equal,
1042 Logical_AND, Logical_OR, Logical_XOR, Logical_NOT, Mean
1138 unsigned int _broadcast = 0;
1165 std::vector<DataPtr> inputs;
1166 std::vector<DataPtr> outputs;
1169 std::vector<PortMap> input_port_map;
1170 std::vector<PortMap> output_port_map;
1171 std::vector<PortMap> back_edges;
1204 int hidden_size = 0;
1273 using RNNCellBase::RNNCellBase;
1274 using RNNCellBase::operator=;
1312 using RNNCellBase::RNNCellBase;
1313 using RNNCellBase::operator=;
1346 using RNNCellBase::RNNCellBase;
1347 using RNNCellBase::operator=;
1381 using RNNCellBase::RNNCellBase;
1388 unsigned int axis = 1;
1454 float epsilon = 1e-3f;
1479 bool transpose_a =
false;
1483 bool transpose_b =
false;
1501 Constant = 0, Edge, Reflect, Symmetric
1519 float pad_value = 0.0f;
1593 unsigned int group = 1;
1611 unsigned int block_size = 1;
1629 unsigned int block_size = 1;
1683 unsigned int depth = 0;
1688 float on_value = 1.f;
1693 float off_value = 0.f;
1800 bool keep_dims =
true;
1869 bool center_point_box =
false;
int GetParamAsInt(const char *param, int def) const
Returns an integer value for the given parameter or returns the default value.
Definition: ie_layers.h:237
BinaryConvolutionLayer(const LayerParams &p)
Creates a new BinaryConvolutionLayer instance.
Definition: ie_layers.h:804
std::shared_ptr< CNNLayer > Ptr
A shared pointer to CNNLayer.
Definition: ie_layers.h:46
#define THROW_IE_EXCEPTION
A macro used to throw the exception with a notable description.
Definition: ie_exception.hpp:22
#define DEFINE_PROP(prop_name)
convinenent way to declare property with backward compatibility to 2D members
Definition: ie_layers.h:559
PoolingLayer(const PoolingLayer &that)
copy constructor
Definition: ie_layers.h:730
std::vector< int > axis
A vector of dimensions for cropping.
Definition: ie_layers.h:1069
virtual const DataPtr input() const
Returns the first element of the input data for this layer.
Definition: ie_layers.h:106
This class represents a Layer which performs Scale and Shift.
Definition: ie_layers.h:1406
std::string type
Layer type.
Definition: ie_layers.h:55
unsigned int _group
Number of groups.
Definition: ie_layers.h:596
LSTM Cell layer.
Definition: ie_layers.h:1271
PoolType _type
A pooling type.
Definition: ie_layers.h:695
This class represents a standard Strided Slice layer Strided Slice picks from input tensor according ...
Definition: ie_layers.h:1546
unsigned int GetParamAsUInt(const char *param, unsigned int def) const
Returns an unsigned integer value for the given parameter or returns the default value.
Definition: ie_layers.h:313
PoolType
Defines available pooling types.
Definition: ie_layers.h:684
float GetParamAsFloat(const char *param, float def) const
Gets float value for the given parameter.
Definition: ie_layers.h:159
This class represents a standard crop layer.
Definition: ie_layers.h:1064
std::vector< float > activation_beta
Beta parameters of activations.
Definition: ie_layers.h:1231
The method holds the user values to enable binding of data per graph node.
Definition: ie_common.h:66
This structure describes ROI data.
Definition: ie_blob.h:1082
PReLULayer(const LayerParams &prms)
A default constructor. Creates a new PReLULayer instance and initializes layer parameters with the gi...
Definition: ie_layers.h:1418
This class represents a standard Power Layer Formula is: output = (offset + scale * input) ^ power...
Definition: ie_layers.h:1425
std::string begin_mask
The begin_mask is a bitmask where bit i being 0 means to ignore the begin value and instead use the d...
Definition: ie_layers.h:1552
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.
Definition: ie_layers.h:269
std::vector< int > shape
A vector of sizes of the shape.
Definition: ie_layers.h:1093
Inference Engine API.
Definition: ie_argmax_layer.hpp:11
Definition: ie_layers.h:1394
This is an internal common Layer parameter parsing arguments.
Definition: ie_layers.h:29
bool _channel_shared
A flag that indicates if the same negative_slope value is used for all the features. If false, the value is used pixel wise.
Definition: ie_layers.h:1411
PropertyVector< unsigned int > _dilation
A convolution dilations array [X, Y, Z, ...].
Definition: ie_layers.h:584
This class represents a standard Space To Depth layer Depth To Space picks from input tensor accordin...
Definition: ie_layers.h:1624
eBinaryConvolutionMode _mode
Mode of binary convolution operation.
Definition: ie_layers.h:756
Definition: ie_layers.h:1193
This class represents a OneHot layer Converts input into OneHot representation.
Definition: ie_layers.h:1678
Base class for recurrent cell layers.
Definition: ie_layers.h:1181
PropertyVector< unsigned int > pads_begin
Size of padding in the beginning of each axis.
Definition: ie_layers.h:1507
PropertyVector< unsigned int > _dilation
A convolution dilations array [X, Y, Z, ...].
Definition: ie_layers.h:783
This class represents a layer with Weights and/or Biases (e.g. Convolution/Fully Connected, etc.)
Definition: ie_layers.h:533
Blob::Ptr _weights
A pointer to a weights blob.
Definition: ie_layers.h:544
PropertyVector< unsigned int > _stride
A convolution strides array [X, Y, Z, ...].
Definition: ie_layers.h:584
This class represents a standard Fill layer RFill modifies input tensor according parameters...
Definition: ie_layers.h:1724
WeightableLayer(const LayerParams &prms)
A default constructor. Constructs a WeightableLayer instance and initiates layer parameters with the ...
Definition: ie_layers.h:539
std::vector< DataWeakPtr > insData
A vector of weak pointers to the input data elements of this layer in the di-graph (order matters) ...
Definition: ie_layers.h:67
RNN Cell layer.
Definition: ie_layers.h:1344
std::string _auto_pad
Auto padding type.
Definition: ie_layers.h:600
void fuse(Ptr &layer)
Sets a layer to be fused with.
Definition: ie_layers.h:98
A header file for Blob and generic TBlob<>
This class represents a standard deconvolution layer.
Definition: ie_layers.h:638
std::string shrink_axis_mask
The shrink_axis_mask is a bitmask where bit i being 1 means the i-th position shrinks the dimensional...
Definition: ie_layers.h:1571
std::vector< unsigned int > GetParamAsUInts(const char *param) const
Returns a vector of unsigned int values for the given parameter.
Definition: ie_layers.h:383
Direction
Direction of iteration through sequence dimension.
Definition: ie_layers.h:1393
int to
Definition: ie_layers.h:1154
std::vector< int > offset
A vector of offsets for each dimension.
Definition: ie_layers.h:1077
This class represents a standard Scatter layer.
Definition: ie_layers.h:1880
This class represents standard MVN Layer.
Definition: ie_layers.h:959
PropertyVector< unsigned int > _kernel
A convolution kernel array [X, Y, Z, ...].
Definition: ie_layers.h:572
int stride
Definition: ie_layers.h:1158
static std::string ie_serialize_float(float value)
serialize float with c_locale formating used for default values serializing
Definition: ie_layers.h:146
Ptr _fusedWith
If suggested to fuse - a pointer to the layer which needs to be fused with this layer.
Definition: ie_layers.h:71
This class represents a standard Reduce layers Reduce modifies input tensor according parameters...
Definition: ie_layers.h:1795
bool sorted
A flag indicating whether to sort unique elements.
Definition: ie_layers.h:1844
std::string sort
top K values sort mode could be 'value' or 'index'
Definition: ie_layers.h:1822
ConvolutionLayer(const ConvolutionLayer &that)
copy constructor
Definition: ie_layers.h:626
PropertyVector< unsigned int > _pads_end
Pooling paddings end array [X, Y, Z, ...].
Definition: ie_layers.h:670
std::vector< std::string > activations
Activations used inside recurrent cell.
Definition: ie_layers.h:1217
std::string name
Layer name.
Definition: ie_layers.h:31
std::string type
Layer type.
Definition: ie_layers.h:33
This class represents a standard Reverse Sequence layer Reverse Sequence modifies input tensor accord...
Definition: ie_layers.h:1655
This class represents a Clamp activation layer Clamps all tensor elements into the range [min_value...
Definition: ie_layers.h:998
int part_size
Definition: ie_layers.h:1161
This class represents a layer that evenly splits the input into the supplied outputs.
Definition: ie_layers.h:877
Definition: ie_layers.h:1395
Definition: ie_layers.h:1191
eOperation
Defines possible operations that can be used.
Definition: ie_layers.h:1039
This class represents a standard TopK layer TopK picks top K values from input tensor according param...
Definition: ie_layers.h:1813
bool _exclude_pad
A flag that indicates if padding is excluded or not.
Definition: ie_layers.h:700
GRU Cell layer.
Definition: ie_layers.h:1310
This class represents an element wise operation layer.
Definition: ie_layers.h:1033
PropertyVector< unsigned int > pads_end
Size of padding in the end of each axis.
Definition: ie_layers.h:1511
This class represents standard GRN Layer.
Definition: ie_layers.h:941
This class represents a standard Shuffle Channels layer Shuffle Channels picks from input tensor acco...
Definition: ie_layers.h:1583
This class represents a standard reshape layer.
Definition: ie_layers.h:1088
std::string mode
The mode could be 'max' or 'min'.
Definition: ie_layers.h:1818
UserValue userValue
Convenience user values to store in this object as extra data.
Definition: ie_layers.h:75
Sequence of recurrent cells.
Definition: ie_layers.h:1379
PropertyVector< unsigned int > _pads_end
A convolution paddings end array [X, Y, Z, ...].
Definition: ie_layers.h:775
BinaryConvolutionLayer(const BinaryConvolutionLayer &that)
copy constructor
Definition: ie_layers.h:828
GRNLayer(const LayerParams &prms)
A default constructor. Creates a new GRNLayer instance and initializes layer parameters with the give...
Definition: ie_layers.h:947
CNNLayer(const LayerParams &prms)
A constructor. Creates a new CNNLayer instance and initializes layer parameters with the given values...
Definition: ie_layers.h:85
static float ie_parse_float(const std::string &str)
Parse string with float in accordance with IE rules.
Definition: ie_layers.h:128
This class represents a fully connected layer.
Definition: ie_layers.h:842
ePadMode
Defines possible modes of pad operation.
Definition: ie_layers.h:1500
This class represents a SelectLayer layer SelectLayer layer takes elements from the second (“then”)...
Definition: ie_layers.h:1739
std::map< std::string, std::string > params
Map of pairs: (parameter name, parameter value)
Definition: ie_layers.h:517
Definition: ie_layers.h:1190
bool return_inverse
A flag indicating whether to return indices of input data elements in the output of uniques...
Definition: ie_layers.h:1848
PoolingLayer(const LayerParams &p)
Creates a new PoolingLayer instance.
Definition: ie_layers.h:709
std::shared_ptr< Blob > Ptr
A smart pointer containing Blob object.
Definition: ie_blob.h:40
std::shared_ptr< Data > DataPtr
Smart pointer to Data.
Definition: ie_common.h:50
std::vector< float > coeff
A vector of coefficients to scale the operands.
Definition: ie_layers.h:1053
bool GetParamsAsBool(const char *param, bool def) const
Definition: ie_layers.h:452
std::string end_mask
Analogous to begin_mask.
Definition: ie_layers.h:1556
This class represents Unique layer. The Unique operation searches for unique elements in 1-D input...
Definition: ie_layers.h:1839
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...
Definition: ie_layers.h:355
std::vector< float > activation_alpha
Alpha parameters of activations.
Definition: ie_layers.h:1224
unsigned int GetParamAsUInt(const char *param) const
Returns an unsigned integer value for the given parameter.
Definition: ie_layers.h:333
This class represents a ReLU6 activation layer Clamps all tensor elements into the range [0...
Definition: ie_layers.h:1020
This class represents a Batch Normalization Layer.
Definition: ie_layers.h:1449
unsigned int _group
Number of groups.
Definition: ie_layers.h:795
PropertyVector< unsigned int > _stride
Pooling strides array [X, Y, Z, ...].
Definition: ie_layers.h:678
This class represents a Layer which performs Scale and Shift.
Definition: ie_layers.h:1133
This class represents standard softmax Layer.
Definition: ie_layers.h:925
unsigned int _out_depth
A number of output feature maps (size) generating the 3'rd output dimension.
Definition: ie_layers.h:592
PropertyVector< unsigned int > _kernel
A convolution kernel array [X, Y, Z, ...].
Definition: ie_layers.h:771
std::vector< float > GetParamAsFloats(const char *param) const
Returns a vector of float values for the given parameter.
Definition: ie_layers.h:214
This header file defines the main Data representation node.
bool return_counts
A flag indicating whether to return a number of occurences for each unique element.
Definition: ie_layers.h:1852
int end
Definition: ie_layers.h:1160
bool GetParamAsBool(const char *param, bool def) const
Returns a boolean value for the given parameter. The valid values are (true, false, 1, 0).
Definition: ie_layers.h:410
std::vector< int > GetParamAsInts(const char *param) const
Returns a vector of int values for the given parameter.
Definition: ie_layers.h:292
float _pad_value
A pad value which is used to fill pad area.
Definition: ie_layers.h:766
std::string ellipsis_mask
The ellipsis_mask is a bitmask where bit i being 1 means the i-th is actually an ellipsis.
Definition: ie_layers.h:1561
unsigned int _in_depth
A number of input feature maps (size) generating the 3'rd input dimension.
Definition: ie_layers.h:761
PropertyVector< unsigned int > _kernel
Pooling kernel array [X, Y, Z, ...].
Definition: ie_layers.h:666
float GetParamAsFloat(const char *param) const
Returns a float value for the given layer parameter.
Definition: ie_layers.h:174
PropertyVector< unsigned int > _padding
Pooling paddings begin array [X, Y, Z, ...].
Definition: ie_layers.h:666
Definition: ie_layers.h:1164
int GetParamAsInt(const char *param) const
Returns an integer value for the given parameter.
Definition: ie_layers.h:252
PropertyVector< unsigned int > _padding
A convolution paddings begin array [X, Y, Z, ...].
Definition: ie_layers.h:771
int across_channels
Indicate that mean value is calculated across channels.
Definition: ie_layers.h:970
Precision precision
Layer base operating precision.
Definition: ie_layers.h:59
This class represents a quantization operation layer Element-wise linear quantization of floating poi...
Definition: ie_layers.h:1764
unsigned int _out_depth
A number of output feature maps (size) generating the 3'rd output dimension.
Definition: ie_layers.h:791
MVNLayer(const LayerParams &prms)
A default constructor. Creates a new MVNLayer instance and initializes layer parameters with the give...
Definition: ie_layers.h:965
This class represents a Rectified Linear activation layer.
Definition: ie_layers.h:981
This class represents a standard 3D Convolution Layer.
Definition: ie_layers.h:567
CellType
Direct type of recurrent cell (including subtypes) Description of particular cell semantics is in LST...
Definition: ie_layers.h:1189
bool GetParamAsBool(const char *param) const
Returns a boolean value for the given parameter.
Definition: ie_layers.h:431
std::string _auto_pad
Auto padding type.
Definition: ie_layers.h:704
std::string _auto_pad
Auto padding type.
Definition: ie_layers.h:799
This class represents a standard Pad layer Adds paddings to input tensor.
Definition: ie_layers.h:1494
This header file contains aspects of working on different devices like CPU, GEN, FPGA, etc.
This class represents a standard Tile Layer.
Definition: ie_layers.h:1112
This class represents a standard binary convolution layer.
Definition: ie_layers.h:743
Precision precision
Layer precision.
Definition: ie_layers.h:35
PropertyVector< unsigned int > _pads_end
A convolution paddings end array [X, Y, Z, ...].
Definition: ie_layers.h:576
Blob::Ptr _biases
A pointer to a biases blob.
Definition: ie_layers.h:548
This class represents a Linear Response Normalization (LRN) Layer.
Definition: ie_layers.h:893
This class represents TensorIterator layer.
Definition: ie_layers.h:1149
This class represents concatenation layer Takes as input several data elements and merges them to one...
Definition: ie_layers.h:859
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.
Definition: ie_layers.h:190
This class represents a standard RangeLayer layer RangeLayer modifies input tensor dimensions accordi...
Definition: ie_layers.h:1711
This is a base abstraction Layer - all DNN Layers inherit from this class.
Definition: ie_layers.h:41
int start
Definition: ie_layers.h:1159
std::string affinity
Layer affinity set by user.
Definition: ie_layers.h:79
This class represents a standard pooling layer.
Definition: ie_layers.h:661
PropertyVector< unsigned int > _stride
A convolution strides array [X, Y, Z, ...].
Definition: ie_layers.h:783
Definition: ie_layers.h:1151
This class represents a standard Gather layer Gather slices from Dictionary according to Indexes...
Definition: ie_layers.h:1530
Definition: ie_layers.h:1192
std::string GetParamAsString(const char *param) const
Returns a string value for the given parameter. Throws exception if parameter was not found...
Definition: ie_layers.h:489
class CNNLayer GenericLayer
Alias for CNNLayer object.
Definition: ie_layers.h:528
This class represents a standard Math layers Math modifies input tensor dimensions according paramete...
Definition: ie_layers.h:1782
std::string new_axis_mask
The new_axis_mask_ is a bitmask where bit i being 1 means the i-th position creates a new 1 dimension...
Definition: ie_layers.h:1566
PropertyVector< unsigned int > _padding
A convolution paddings begin array [X, Y, Z, ...].
Definition: ie_layers.h:572
std::map< std::string, Blob::Ptr > blobs
Map of pairs: (name, weights/biases blob)
Definition: ie_layers.h:522
std::string GetParamAsString(const char *param, const char *def) const
Returns a string value for the given parameter or returns the default one.
Definition: ie_layers.h:462
std::vector< DataPtr > outData
A vector of pointers to the output data elements of this layer in the di-graph (order matters) ...
Definition: ie_layers.h:63
eBinaryConvolutionMode
Defines possible modes of binary convolution operation.
Definition: ie_layers.h:749
int from
Definition: ie_layers.h:1153
This class represents a standard NonMaxSuppression layer.
Definition: ie_layers.h:1864
bool CheckParamPresence(const char *param) const
Checks the param presence in the layer.
Definition: ie_layers.h:475
This class represents a standard Depth To Space layer Depth To Space picks from input tensor accordin...
Definition: ie_layers.h:1606
This class represents a general matrix multiplication operation layer Formula is: dst := alpha*src1*s...
Definition: ie_layers.h:1466
int axis
Definition: ie_layers.h:1157
std::vector< int > dim
A vector of dimensions to be preserved.
Definition: ie_layers.h:1073
This class represents SparseFillEmptyRows layer SparseFillEmptyRows fills empty rows in a sparse tens...
Definition: ie_layers.h:1642
std::string name
Layer name.
Definition: ie_layers.h:51
This is a header file with common inference engine definitions.
ConvolutionLayer(const LayerParams &p)
Creates a new ConvolutionLayer instance.
Definition: ie_layers.h:605
This class holds precision value and provides precision related operations.
Definition: ie_precision.hpp:19
This class represents a standard Broadcast layer Broadcast modifies input tensor dimensions according...
Definition: ie_layers.h:1752