42 class INFERENCE_ENGINE_API_CLASS(CNNLayer) {
47 using Ptr = std::shared_ptr<CNNLayer>;
88 : name(prms.name), type(prms.type), precision(prms.precision), userValue({0}) {}
110 if (insData.empty()) {
113 auto lockedFirstInsData = insData[0].lock();
114 if (!lockedFirstInsData) {
117 return lockedFirstInsData;
123 void validateLayer();
134 return -std::numeric_limits<float>::infinity();
135 }
else if (str ==
"inf") {
136 return std::numeric_limits<float>::infinity();
139 std::stringstream val_stream(str);
140 val_stream.imbue(std::locale(
"C"));
151 std::stringstream val_stream;
152 val_stream.imbue(std::locale(
"C"));
154 return val_stream.str();
165 std::string val = GetParamAsString(param, ie_serialize_float(def).c_str());
167 return ie_parse_float(val);
169 THROW_IE_EXCEPTION <<
"Cannot parse parameter " << param <<
" from IR for layer " << name <<
". Value " 170 << val <<
" cannot be casted to float.";
181 std::string val = GetParamAsString(param);
183 return ie_parse_float(val);
185 THROW_IE_EXCEPTION <<
"Cannot parse parameter " << param <<
" from IR for layer " << name <<
". Value " 186 << val <<
" cannot be casted to float.";
198 std::string vals = GetParamAsString(param,
"");
199 std::vector<float> result;
200 std::istringstream stream(vals);
202 if (vals.empty())
return def;
203 while (getline(stream, str,
',')) {
205 float val = ie_parse_float(str);
206 result.push_back(val);
208 THROW_IE_EXCEPTION <<
"Cannot parse parameter " << param <<
" " << str <<
" from IR for layer " << name
209 <<
". Value " << vals <<
" cannot be casted to floats.";
222 std::string vals = GetParamAsString(param);
223 std::vector<float> result;
224 std::istringstream stream(vals);
226 while (getline(stream, str,
',')) {
228 float val = ie_parse_float(str);
229 result.push_back(val);
231 THROW_IE_EXCEPTION <<
"Cannot parse parameter " << param <<
" " << str <<
" from IR for layer " << name
232 <<
". Value " << vals <<
" cannot be casted to floats.";
246 std::string val = GetParamAsString(param, std::to_string(def).c_str());
248 return std::stoi(val);
250 THROW_IE_EXCEPTION <<
"Cannot parse parameter " << param <<
" from IR for layer " << name <<
". Value " 251 << val <<
" cannot be casted to int.";
262 std::string val = GetParamAsString(param);
264 return std::stoi(val);
266 THROW_IE_EXCEPTION <<
"Cannot parse parameter " << param <<
" from IR for layer " << name <<
". Value " 267 << val <<
" cannot be casted to int.";
279 std::string vals = GetParamAsString(param,
"");
280 std::vector<int> result;
281 std::istringstream stream(vals);
283 if (vals.empty())
return def;
284 while (getline(stream, str,
',')) {
286 result.push_back(std::stoi(str));
288 THROW_IE_EXCEPTION <<
"Cannot parse parameter " << param <<
" " << str <<
" from IR for layer " << name
289 <<
". Value " << vals <<
" cannot be casted to int.";
302 std::string vals = GetParamAsString(param);
303 std::vector<int> result;
304 std::istringstream stream(vals);
306 while (getline(stream, str,
',')) {
308 result.push_back(std::stoi(str));
310 THROW_IE_EXCEPTION <<
"Cannot parse parameter " << param <<
" " << str <<
" from IR for layer " << name
311 <<
". Value " << vals <<
" cannot be casted to int.";
324 std::string val = GetParamAsString(param, std::to_string(def).c_str());
325 std::string message =
"Cannot parse parameter " + std::string(param) +
" from IR for layer " + name +
326 ". Value " + val +
" cannot be casted to int.";
328 int value = std::stoi(val);
332 return static_cast<unsigned int>(value);
345 std::string val = GetParamAsString(param);
346 std::string message =
"Cannot parse parameter " + std::string(param) +
" from IR for layer " + name +
347 ". Value " + val +
" cannot be casted to unsigned int.";
349 int value = std::stoi(val);
353 return static_cast<unsigned int>(value);
366 std::vector<unsigned int>
GetParamAsUInts(
const char* param, std::vector<unsigned int> def)
const {
367 std::string vals = GetParamAsString(param,
"");
368 std::vector<unsigned int> result;
369 std::istringstream stream(vals);
371 std::string message =
"Cannot parse parameter " + std::string(param) +
" " + str +
" from IR for layer " +
372 name +
". Value " + vals +
" cannot be casted to unsigned int.";
373 if (vals.empty())
return def;
374 while (getline(stream, str,
',')) {
376 int value = std::stoi(str);
380 result.push_back(static_cast<unsigned int>(value));
395 std::string vals = GetParamAsString(param);
396 std::vector<unsigned int> result;
397 std::istringstream stream(vals);
399 std::string message =
"Cannot parse parameter " + std::string(param) +
" " + str +
" from IR for layer " +
400 name +
". Value " + vals +
" cannot be casted to int.";
401 while (getline(stream, str,
',')) {
403 int value = std::stoi(str);
407 result.push_back(static_cast<unsigned int>(value));
423 std::string val = GetParamAsString(param, std::to_string(def).c_str());
424 std::string loweredCaseValue;
425 std::transform(val.begin(), val.end(), std::back_inserter(loweredCaseValue), [](
char value) {
426 return std::tolower(value);
431 if (!(std::istringstream(loweredCaseValue) >> std::boolalpha >> result)) {
433 return (GetParamAsInt(param, def) != 0);
445 std::string val = GetParamAsString(param);
446 std::string loweredCaseValue;
447 std::transform(val.begin(), val.end(), std::back_inserter(loweredCaseValue), [](
char value) {
448 return std::tolower(value);
453 if (!(std::istringstream(loweredCaseValue) >> std::boolalpha >> result)) {
455 return (GetParamAsInt(param) != 0);
469 auto it = params.find(param);
470 if (it == params.end() || it->second.empty()) {
483 auto it = params.find(param);
484 if (it == params.end()) {
498 auto it = params.find(param);
499 if (it == params.end()) {
505 std::vector<std::string> GetParamAsStrings(
const char* param, std::vector<std::string> def)
const {
506 std::string vals = GetParamAsString(param,
"");
507 std::vector<std::string> result;
508 std::istringstream stream(vals);
510 if (vals.empty())
return def;
511 while (getline(stream, str,
',')) {
513 result.push_back(str);
515 THROW_IE_EXCEPTION <<
"Cannot parse parameter " << param <<
" from IR for layer " << name <<
".";
524 std::map<std::string, std::string>
params;
529 std::map<std::string, Blob::Ptr>
blobs;
540 class INFERENCE_ENGINE_API_CLASS(WeightableLayer):
public CNNLayer {
570 #define DEFINE_PROP(prop_name) \ 571 PropertyVector<unsigned int> prop_name; \ 572 unsigned int& prop_name##_x = prop_name.at(X_AXIS); \ 573 unsigned int& prop_name##_y = prop_name.at(Y_AXIS); 603 unsigned int _out_depth = 0u;
607 unsigned int _group = 1u;
617 :
WeightableLayer(p), _kernel(2, 0u), _padding(2, 0u), _stride(2, 1u), _dilation(2, 1u) {}
623 WeightableLayer::operator=(that);
654 using ConvolutionLayer::operator=;
665 using ConvolutionLayer::operator=;
670 unsigned int _deformable_group = 1u;
678 class INFERENCE_ENGINE_API_CLASS(PoolingLayer):
public CNNLayer {
701 enum PoolType { MAX = 1, AVG = 2, STOCH = 3,
ROI = 4, SPACIAL_PYRAMID = 5 };
711 bool _exclude_pad =
false;
727 CNNLayer::operator=(that);
771 unsigned int _in_depth = 0u;
776 float _pad_value = 0.0f;
801 unsigned int _out_depth = 0u;
805 unsigned int _group = 1u;
815 :
WeightableLayer(p), _kernel(2, 0u), _padding(2, 0u), _stride(2, 1u), _dilation(2, 1u) {}
821 WeightableLayer::operator=(that);
859 unsigned int _out_num = 0;
874 class INFERENCE_ENGINE_API_CLASS(ConcatLayer):
public CNNLayer {
879 unsigned int _axis = 1;
895 class INFERENCE_ENGINE_API_CLASS(SplitLayer):
public CNNLayer {
900 unsigned int _axis = 1;
913 class INFERENCE_ENGINE_API_CLASS(NormLayer):
public CNNLayer {
918 unsigned int _size = 0;
934 bool _isAcrossMaps =
false;
947 class INFERENCE_ENGINE_API_CLASS(SoftMaxLayer):
public CNNLayer {
965 class INFERENCE_ENGINE_API_CLASS(GRNLayer):
public CNNLayer {
987 class INFERENCE_ENGINE_API_CLASS(MVNLayer):
public CNNLayer {
1013 class INFERENCE_ENGINE_API_CLASS(ReLULayer):
public CNNLayer {
1018 float negative_slope = 0.0f;
1033 class INFERENCE_ENGINE_API_CLASS(ClampLayer):
public CNNLayer {
1038 float min_value = 0.0f;
1043 float max_value = 1.0f;
1057 class INFERENCE_ENGINE_API_CLASS(ReLU6Layer):
public ClampLayer {
1069 class INFERENCE_ENGINE_API_CLASS(EltwiseLayer):
public CNNLayer {
1119 class INFERENCE_ENGINE_API_CLASS(CropLayer):
public CNNLayer {
1145 class INFERENCE_ENGINE_API_CLASS(ReshapeLayer):
public CNNLayer {
1171 class INFERENCE_ENGINE_API_CLASS(TileLayer):
public CNNLayer {
1199 unsigned int _broadcast = 0;
1212 class INFERENCE_ENGINE_API_CLASS(TensorIterator):
public CNNLayer {
1228 std::vector<DataPtr> inputs;
1229 std::vector<DataPtr> outputs;
1232 std::vector<PortMap> input_port_map;
1233 std::vector<PortMap> output_port_map;
1234 std::vector<PortMap> back_edges;
1269 int hidden_size = 0;
1340 using RNNCellBase::RNNCellBase;
1341 using RNNCellBase::operator=;
1381 using RNNCellBase::RNNCellBase;
1382 using RNNCellBase::operator=;
1417 using RNNCellBase::RNNCellBase;
1418 using RNNCellBase::operator=;
1451 class INFERENCE_ENGINE_API_CLASS(RNNSequenceLayer):
public RNNCellBase {
1453 using RNNCellBase::RNNCellBase;
1461 unsigned int axis = 1;
1505 class INFERENCE_ENGINE_API_CLASS(PowerLayer):
public CNNLayer {
1536 float epsilon = 1e-3f;
1551 class INFERENCE_ENGINE_API_CLASS(GemmLayer):
public CNNLayer {
1564 bool transpose_a =
false;
1568 bool transpose_b =
false;
1582 class INFERENCE_ENGINE_API_CLASS(PadLayer):
public CNNLayer {
1588 enum ePadMode { Constant = 0, Edge, Reflect, Symmetric };
1605 float pad_value = 0.0f;
1619 class INFERENCE_ENGINE_API_CLASS(GatherLayer):
public CNNLayer {
1638 class INFERENCE_ENGINE_API_CLASS(StridedSliceLayer):
public CNNLayer {
1677 class INFERENCE_ENGINE_API_CLASS(ShuffleChannelsLayer):
public CNNLayer {
1687 unsigned int group = 1;
1701 class INFERENCE_ENGINE_API_CLASS(DepthToSpaceLayer):
public CNNLayer {
1706 unsigned int block_size = 1;
1720 class INFERENCE_ENGINE_API_CLASS(SpaceToDepthLayer):
public CNNLayer {
1725 unsigned int block_size = 1;
1740 class INFERENCE_ENGINE_API_CLASS(SparseFillEmptyRowsLayer):
public CNNLayer {
1754 class INFERENCE_ENGINE_API_CLASS(SparseSegmentReduceLayer):
public CNNLayer {
1768 class INFERENCE_ENGINE_API_CLASS(ExperimentalSparseWeightedReduceLayer) :
public CNNLayer {
1782 class INFERENCE_ENGINE_API_CLASS(SparseToDenseLayer) :
public CNNLayer {
1796 class INFERENCE_ENGINE_API_CLASS(BucketizeLayer) :
public CNNLayer {
1801 bool with_right_bound =
false;
1816 class INFERENCE_ENGINE_API_CLASS(ReverseSequenceLayer):
public CNNLayer {
1840 class INFERENCE_ENGINE_API_CLASS(OneHotLayer):
public CNNLayer {
1845 unsigned int depth = 0;
1850 float on_value = 1.f;
1855 float off_value = 0.f;
1875 class INFERENCE_ENGINE_API_CLASS(RangeLayer):
public CNNLayer {
1890 class INFERENCE_ENGINE_API_CLASS(FillLayer):
public CNNLayer {
1907 class INFERENCE_ENGINE_API_CLASS(SelectLayer):
public CNNLayer {
1922 class INFERENCE_ENGINE_API_CLASS(BroadcastLayer):
public CNNLayer {
1937 class INFERENCE_ENGINE_API_CLASS(QuantizeLayer):
public CNNLayer {
1957 class INFERENCE_ENGINE_API_CLASS(MathLayer):
public CNNLayer {
1972 class INFERENCE_ENGINE_API_CLASS(ReduceLayer):
public CNNLayer {
1977 bool keep_dims =
true;
1992 class INFERENCE_ENGINE_API_CLASS(TopKLayer):
public CNNLayer {
2020 class INFERENCE_ENGINE_API_CLASS(UniqueLayer):
public CNNLayer {
2046 class INFERENCE_ENGINE_API_CLASS(NonMaxSuppressionLayer):
public CNNLayer {
2051 bool center_point_box =
false;
2056 bool sort_result_descending =
true;
2068 class INFERENCE_ENGINE_API_CLASS(ScatterLayer):
public CNNLayer {
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:245
BinaryConvolutionLayer(const LayerParams &p)
Creates a new BinaryConvolutionLayer instance.
Definition: ie_layers.h:814
std::shared_ptr< CNNLayer > Ptr
A shared pointer to CNNLayer.
Definition: ie_layers.h:47
#define THROW_IE_EXCEPTION
A macro used to throw the exception with a notable description.
Definition: ie_exception.hpp:25
#define DEFINE_PROP(prop_name)
convinenent way to declare property with backward compatibility to 2D members
Definition: ie_layers.h:570
PoolingLayer(const PoolingLayer &that)
copy constructor
Definition: ie_layers.h:740
std::vector< int > axis
A vector of dimensions for cropping.
Definition: ie_layers.h:1124
virtual const DataPtr input() const
Returns the first element of the input data for this layer.
Definition: ie_layers.h:109
This class represents a Layer which performs Scale and Shift.
Definition: ie_layers.h:1481
std::string type
Layer type.
Definition: ie_layers.h:56
unsigned int _group
Number of groups.
Definition: ie_layers.h:607
LSTM Cell layer.
Definition: ie_layers.h:1338
PoolType _type
A pooling type.
Definition: ie_layers.h:706
This class represents a standard Strided Slice layer.
Definition: ie_layers.h:1638
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:323
PoolType
Defines available pooling types.
Definition: ie_layers.h:701
float GetParamAsFloat(const char *param, float def) const
Gets float value for the given parameter.
Definition: ie_layers.h:164
This class represents a standard crop layer.
Definition: ie_layers.h:1119
std::vector< float > activation_beta
Beta parameters of activations.
Definition: ie_layers.h:1296
The method holds the user values to enable binding of data per graph node.
Definition: ie_common.h:69
This structure describes ROI data.
Definition: ie_blob.h:848
PReLULayer(const LayerParams &prms)
A default constructor. Creates a new PReLULayer instance and initializes layer parameters with the gi...
Definition: ie_layers.h:1495
This class represents a standard Power Layer.
Definition: ie_layers.h:1505
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:1644
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:278
std::vector< int > shape
A vector of sizes of the shape.
Definition: ie_layers.h:1150
Inference Engine API.
Definition: ie_argmax_layer.hpp:15
Definition: ie_layers.h:1467
This is an internal common Layer parameter parsing arguments.
Definition: ie_layers.h:30
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:1487
PropertyVector< unsigned int > _dilation
A convolution dilations array [X, Y, Z, ...].
Definition: ie_layers.h:595
This class represents a standard Space To Depth layer Depth To Space picks from input tensor accordin...
Definition: ie_layers.h:1720
eBinaryConvolutionMode _mode
Mode of binary convolution operation.
Definition: ie_layers.h:766
Definition: ie_layers.h:1258
This class represents a OneHot layer Converts input into OneHot representation.
Definition: ie_layers.h:1840
Base class for recurrent cell layers.
Definition: ie_layers.h:1246
PropertyVector< unsigned int > pads_begin
Size of padding in the beginning of each axis.
Definition: ie_layers.h:1593
PropertyVector< unsigned int > _dilation
A convolution dilations array [X, Y, Z, ...].
Definition: ie_layers.h:793
This class represents ExperimentalSparseWeightedReduce layer ExperimentalSparseWeightedReduce layer r...
Definition: ie_layers.h:1768
This class represents a layer with Weights and/or Biases (e.g. Convolution/Fully Connected, etc.)
Definition: ie_layers.h:540
Blob::Ptr _weights
A pointer to a weights blob.
Definition: ie_layers.h:553
PropertyVector< unsigned int > _stride
A convolution strides array [X, Y, Z, ...].
Definition: ie_layers.h:595
This class represents a standard Fill layer.
Definition: ie_layers.h:1890
WeightableLayer(const LayerParams &prms)
A default constructor. Constructs a WeightableLayer instance and initiates layer parameters with the ...
Definition: ie_layers.h:548
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:68
RNN Cell layer.
Definition: ie_layers.h:1415
std::string _auto_pad
Auto padding type.
Definition: ie_layers.h:611
void fuse(Ptr &layer)
Sets a layer to be fused with.
Definition: ie_layers.h:100
A header file for Blob and generic TBlob<>
This class represents a standard deconvolution layer.
Definition: ie_layers.h:651
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:1663
std::vector< unsigned int > GetParamAsUInts(const char *param) const
Returns a vector of unsigned int values for the given parameter.
Definition: ie_layers.h:394
Direction
Direction of iteration through sequence dimension.
Definition: ie_layers.h:1466
int to
Definition: ie_layers.h:1217
std::vector< int > offset
A vector of offsets for each dimension.
Definition: ie_layers.h:1132
This class represents a standard Scatter layer.
Definition: ie_layers.h:2068
This class represents standard MVN Layer.
Definition: ie_layers.h:987
PropertyVector< unsigned int > _kernel
A convolution kernel array [X, Y, Z, ...].
Definition: ie_layers.h:583
int stride
Definition: ie_layers.h:1221
static std::string ie_serialize_float(float value)
serialize float with c_locale formating used for default values serializing
Definition: ie_layers.h:150
Ptr _fusedWith
If suggested to fuse - a pointer to the layer which needs to be fused with this layer.
Definition: ie_layers.h:72
This class represents a standard Reduce layers.
Definition: ie_layers.h:1972
bool sorted
A flag indicating whether to sort unique elements.
Definition: ie_layers.h:2025
std::string sort
top K values sort mode could be 'value' or 'index'
Definition: ie_layers.h:2001
ConvolutionLayer(const ConvolutionLayer &that)
copy constructor
Definition: ie_layers.h:637
PropertyVector< unsigned int > _pads_end
Pooling paddings end array [X, Y, Z, ...].
Definition: ie_layers.h:687
BinaryConvolutionLayer & operator=(const BinaryConvolutionLayer &that)
assignment operator
Definition: ie_layers.h:819
std::vector< std::string > activations
Activations used inside recurrent cell.
Definition: ie_layers.h:1282
std::string name
Layer name.
Definition: ie_layers.h:32
std::string type
Layer type.
Definition: ie_layers.h:34
This class represents a standard Reverse Sequence layer.
Definition: ie_layers.h:1816
This class represents a Clamp activation layer.
Definition: ie_layers.h:1033
int part_size
Definition: ie_layers.h:1224
ConvolutionLayer & operator=(const ConvolutionLayer &that)
assignment operator
Definition: ie_layers.h:621
This class represents a layer that evenly splits the input into the supplied outputs.
Definition: ie_layers.h:895
Definition: ie_layers.h:1468
Definition: ie_layers.h:1256
eOperation
Defines possible operations that can be used.
Definition: ie_layers.h:1075
This class represents a standard TopK layer.
Definition: ie_layers.h:1992
bool _exclude_pad
A flag that indicates if padding is excluded or not.
Definition: ie_layers.h:711
GRU Cell layer.
Definition: ie_layers.h:1379
This class represents an element wise operation layer.
Definition: ie_layers.h:1069
PropertyVector< unsigned int > pads_end
Size of padding in the end of each axis.
Definition: ie_layers.h:1597
This class represents standard GRN Layer.
Definition: ie_layers.h:965
This class represents a standard Shuffle Channels layer Shuffle Channels picks from input tensor acco...
Definition: ie_layers.h:1677
This class represents a standard reshape layer.
Definition: ie_layers.h:1145
std::string mode
The mode could be 'max' or 'min'.
Definition: ie_layers.h:1997
UserValue userValue
Convenience user values to store in this object as extra data.
Definition: ie_layers.h:76
Sequence of recurrent cells.
Definition: ie_layers.h:1451
PropertyVector< unsigned int > _pads_end
A convolution paddings end array [X, Y, Z, ...].
Definition: ie_layers.h:785
BinaryConvolutionLayer(const BinaryConvolutionLayer &that)
copy constructor
Definition: ie_layers.h:838
GRNLayer(const LayerParams &prms)
A default constructor. Creates a new GRNLayer instance and initializes layer parameters with the give...
Definition: ie_layers.h:973
CNNLayer(const LayerParams &prms)
A constructor. Creates a new CNNLayer instance and initializes layer parameters with the given values...
Definition: ie_layers.h:87
static float ie_parse_float(const std::string &str)
Parse string with float in accordance with IE rules.
Definition: ie_layers.h:132
This class represents a fully connected layer.
Definition: ie_layers.h:854
ePadMode
Defines possible modes of pad operation.
Definition: ie_layers.h:1588
This class represents a SelectLayer layer.
Definition: ie_layers.h:1907
std::map< std::string, std::string > params
Map of pairs: (parameter name, parameter value)
Definition: ie_layers.h:524
Definition: ie_layers.h:1255
bool return_inverse
A flag indicating whether to return indices of input data elements in the output of uniques...
Definition: ie_layers.h:2029
PoolingLayer(const LayerParams &p)
Creates a new PoolingLayer instance.
Definition: ie_layers.h:720
std::shared_ptr< Blob > Ptr
A smart pointer containing Blob object.
Definition: ie_blob.h:42
std::shared_ptr< Data > DataPtr
Smart pointer to Data.
Definition: ie_common.h:53
std::vector< float > coeff
A vector of coefficients to scale the operands.
Definition: ie_layers.h:1106
std::string end_mask
Analogous to begin_mask.
Definition: ie_layers.h:1648
This class represents Unique layer.
Definition: ie_layers.h:2020
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:366
std::vector< float > activation_alpha
Alpha parameters of activations.
Definition: ie_layers.h:1289
a header file for describing property style structure used by CNNLayers
This class represents SparseToDense layer SparseToDense layer converts a sparse tensor to a dense ten...
Definition: ie_layers.h:1782
unsigned int GetParamAsUInt(const char *param) const
Returns an unsigned integer value for the given parameter.
Definition: ie_layers.h:344
This class represents a ReLU6 activation layer.
Definition: ie_layers.h:1057
This class represents a Batch Normalization Layer.
Definition: ie_layers.h:1531
unsigned int _group
Number of groups.
Definition: ie_layers.h:805
PropertyVector< unsigned int > _stride
Pooling strides array [X, Y, Z, ...].
Definition: ie_layers.h:695
This class represents a Layer which performs Scale and Shift.
Definition: ie_layers.h:1193
This class represents standard softmax Layer.
Definition: ie_layers.h:947
unsigned int _out_depth
A number of output feature maps (size) generating the 3'rd output dimension.
Definition: ie_layers.h:603
PropertyVector< unsigned int > _kernel
A convolution kernel array [X, Y, Z, ...].
Definition: ie_layers.h:781
std::vector< float > GetParamAsFloats(const char *param) const
Returns a vector of float values for the given parameter.
Definition: ie_layers.h:221
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:2033
int end
Definition: ie_layers.h:1223
bool GetParamAsBool(const char *param, bool def) const
Returns a boolean value for the given parameter.
Definition: ie_layers.h:422
std::vector< int > GetParamAsInts(const char *param) const
Returns a vector of int values for the given parameter.
Definition: ie_layers.h:301
float _pad_value
A pad value which is used to fill pad area.
Definition: ie_layers.h:776
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:1653
unsigned int _in_depth
A number of input feature maps (size) generating the 3'rd input dimension.
Definition: ie_layers.h:771
PropertyVector< unsigned int > _kernel
Pooling kernel array [X, Y, Z, ...].
Definition: ie_layers.h:683
float GetParamAsFloat(const char *param) const
Returns a float value for the given layer parameter.
Definition: ie_layers.h:180
PropertyVector< unsigned int > _padding
Pooling paddings begin array [X, Y, Z, ...].
Definition: ie_layers.h:683
Definition: ie_layers.h:1227
int GetParamAsInt(const char *param) const
Returns an integer value for the given parameter.
Definition: ie_layers.h:261
PropertyVector< unsigned int > _padding
A convolution paddings begin array [X, Y, Z, ...].
Definition: ie_layers.h:781
int across_channels
Indicate that mean value is calculated across channels.
Definition: ie_layers.h:1000
Precision precision
Layer base operating precision.
Definition: ie_layers.h:60
This class represents a quantization operation layer.
Definition: ie_layers.h:1937
unsigned int _out_depth
A number of output feature maps (size) generating the 3'rd output dimension.
Definition: ie_layers.h:801
MVNLayer(const LayerParams &prms)
A default constructor. Creates a new MVNLayer instance and initializes layer parameters with the give...
Definition: ie_layers.h:995
This class represents a Rectified Linear activation layer.
Definition: ie_layers.h:1013
This class represents a standard 3D Convolution Layer.
Definition: ie_layers.h:578
CellType
Direct type of recurrent cell (including subtypes) Description of particular cell semantics is in LST...
Definition: ie_layers.h:1254
This class represents Bucketize layer Bucketize layer bucketizes the input based on the boundaries...
Definition: ie_layers.h:1796
bool GetParamAsBool(const char *param) const
Returns a boolean value for the given parameter.
Definition: ie_layers.h:444
std::string _auto_pad
Auto padding type.
Definition: ie_layers.h:715
std::string _auto_pad
Auto padding type.
Definition: ie_layers.h:809
This class represents a standard Pad layer.
Definition: ie_layers.h:1582
This class represents a standard Tile Layer.
Definition: ie_layers.h:1171
This class represents a standard binary convolution layer.
Definition: ie_layers.h:755
Precision precision
Layer precision.
Definition: ie_layers.h:36
PropertyVector< unsigned int > _pads_end
A convolution paddings end array [X, Y, Z, ...].
Definition: ie_layers.h:587
Blob::Ptr _biases
A pointer to a biases blob.
Definition: ie_layers.h:557
This class represents a Linear Response Normalization (LRN) Layer.
Definition: ie_layers.h:913
This class represents TensorIterator layer.
Definition: ie_layers.h:1212
This class represents concatenation layer.
Definition: ie_layers.h:874
PoolingLayer & operator=(const PoolingLayer &that)
assignment operator
Definition: ie_layers.h:725
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:197
This class represents SparseSegmentMean(SqrtN, Sum) layers SparseSegmentMean(SqrtN, Sum) layer reduces data along sparse segments of a tensor.
Definition: ie_layers.h:1754
This class represents a standard RangeLayer layer.
Definition: ie_layers.h:1875
This is a base abstraction Layer - all DNN Layers inherit from this class.
Definition: ie_layers.h:42
int start
Definition: ie_layers.h:1222
std::string affinity
Layer affinity set by user.
Definition: ie_layers.h:80
This class represents a standard pooling layer.
Definition: ie_layers.h:678
PropertyVector< unsigned int > _stride
A convolution strides array [X, Y, Z, ...].
Definition: ie_layers.h:793
Definition: ie_layers.h:1214
This class represents a standard Gather layer.
Definition: ie_layers.h:1619
Definition: ie_layers.h:1257
std::string GetParamAsString(const char *param) const
Returns a string value for the given parameter.
Definition: ie_layers.h:497
class CNNLayer GenericLayer
Alias for CNNLayer object.
Definition: ie_layers.h:535
This class represents a standard Math layers.
Definition: ie_layers.h:1957
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:1658
PropertyVector< unsigned int > _padding
A convolution paddings begin array [X, Y, Z, ...].
Definition: ie_layers.h:583
std::map< std::string, Blob::Ptr > blobs
Map of pairs: (name, weights/biases blob)
Definition: ie_layers.h:529
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:468
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:64
eBinaryConvolutionMode
Defines possible modes of binary convolution operation.
Definition: ie_layers.h:761
int from
Definition: ie_layers.h:1216
This class represents a standard NonMaxSuppression layer.
Definition: ie_layers.h:2046
bool CheckParamPresence(const char *param) const
Checks the param presence in the layer.
Definition: ie_layers.h:482
This class represents a standard Depth To Space layer Depth To Space picks from input tensor accordin...
Definition: ie_layers.h:1701
This class represents a general matrix multiplication operation layer.
Definition: ie_layers.h:1551
int axis
Definition: ie_layers.h:1220
std::vector< int > dim
A vector of dimensions to be preserved.
Definition: ie_layers.h:1128
This class represents SparseFillEmptyRows layer.
Definition: ie_layers.h:1740
std::string name
Layer name.
Definition: ie_layers.h:52
This is a header file with common inference engine definitions.
ConvolutionLayer(const LayerParams &p)
Creates a new ConvolutionLayer instance.
Definition: ie_layers.h:616
This class holds precision value and provides precision related operations.
Definition: ie_precision.hpp:22
This class represents a standard Broadcast layer.
Definition: ie_layers.h:1922