48 #ifndef __LAYER_FORWARD_DESCRIPTOR_H__ 49 #define __LAYER_FORWARD_DESCRIPTOR_H__ 51 #include "algorithms/neural_networks/layers/layer_forward.h" 60 namespace neural_networks
89 LayerDescriptor(): _index(0) {}
98 LayerDescriptor(
const size_t index_,
const forward::LayerIfacePtr &layer_,
const NextLayers &nextLayers_) :
99 _index(index_), _layer(layer_), _nextLayers(nextLayers_) {}
106 LayerDescriptor(
const size_t index_,
const forward::LayerIfacePtr &layer_) : _index(index_), _layer(layer_) {}
109 LayerDescriptor(
const LayerDescriptor& other): _index(other._index), _layer(other._layer), _nextLayers(other._nextLayers) {}
115 size_t index()
const {
return _index; }
123 services::Status addNext(
size_t index)
125 _nextLayers.add(index);
126 return services::Status();
133 const forward::LayerIfacePtr & layer()
const {
return _layer; }
139 const NextLayers & nextLayers()
const {
return _nextLayers; }
142 forward::LayerIfacePtr _layer;
143 NextLayers _nextLayers;
148 using interface1::LayerDescriptor;
daal::services::interface1::Status
Class that holds the results of API calls. In case of API routine failure it contains the list of err...
Definition: error_handling.h:491
daal
Definition: algorithm_base_common.h:57
daal::algorithms::neural_networks::layers::forward::interface1::LayerDescriptor::layer
const forward::LayerIfacePtr & layer() const
Definition: layer_forward_descriptor.h:133
daal::algorithms::neural_networks::layers::interface1::NextLayers
Contains list of layer indices of layers following the current layer.
Definition: layer_types.h:140
daal::algorithms::neural_networks::layers::forward::interface1::LayerDescriptor::LayerDescriptor
LayerDescriptor(const LayerDescriptor &other)
Definition: layer_forward_descriptor.h:109
daal::algorithms::neural_networks::layers::forward::interface1::LayerDescriptor::index
size_t index() const
Definition: layer_forward_descriptor.h:115
daal::algorithms::neural_networks::layers::forward::interface1::LayerDescriptor::addNext
services::Status addNext(size_t index)
Definition: layer_forward_descriptor.h:123
daal::algorithms::neural_networks::layers::forward::interface1::LayerDescriptor::LayerDescriptor
LayerDescriptor(const size_t index_, const forward::LayerIfacePtr &layer_)
Definition: layer_forward_descriptor.h:106
daal::algorithms::neural_networks::layers::forward::interface1::LayerDescriptor::nextLayers
const NextLayers & nextLayers() const
Definition: layer_forward_descriptor.h:139
daal::algorithms::neural_networks::layers::forward::interface1::LayerDescriptor
Class defining descriptor for layer on forward stage.
Definition: layer_forward_descriptor.h:83
daal::algorithms::neural_networks::layers::forward::interface1::LayerDescriptor::LayerDescriptor
LayerDescriptor()
Definition: layer_forward_descriptor.h:89
daal::algorithms::neural_networks::layers::forward::interface1::LayerDescriptor::LayerDescriptor
LayerDescriptor(const size_t index_, const forward::LayerIfacePtr &layer_, const NextLayers &nextLayers_)
Definition: layer_forward_descriptor.h:98
daal::algorithms::neural_networks::layers::interface1::NextLayers::add
void add(size_t index)
Definition: layer_types.h:282