C++ API Reference for Intel® Data Analytics Acceleration Library 2018 Update 1

List of all members

Class defining a neural network topology - a set of layers and connection between them - on the prediction stage. More...

Class Declaration

Constructor & Destructor Documentation

Topology ( )
inline

Default constructor

Topology ( const training::Topology &  t)
inline

Constructs neural network topology for prediction algorithm by copying layers of topology used for training algoritnm

Parameters
[in]tNeural network topology to be used as the source to initialize layers
Topology ( const Topology t)
inline

Constructs neural network topology by copying layers of another topology

Parameters
[in]tNeural network topology to be used as the source to initialize layers

Member Function Documentation

size_t add ( const layers::forward::LayerIfacePtr &  layer)
inline

Adds an element to the collection of layers and assigns the next available id to it

Parameters
[in]layerElement to add
Returns
Index of the element
size_t add ( const Topology topologyBlock,
size_t &  startIndex 
)
inline

Adds a block of elements to the collection of layers

Parameters
[in]topologyBlockBlock to add
[in]startIndexIndex of the first element of the block in topology
Returns
Index of the last element of the block in topology
services::Status addNext ( size_t  index,
size_t  next 
)
inline

Adds next layer to the given layer

Parameters
[in]indexIndex of the layer to add next layer
[in]nextIndex of the next layer
Deprecated:
This item will be removed in a future release. Use Topology::get instead. Following with LayerDescriptor::addNext method.
Returns
Status of computations
services::Status clear ( )
inline

Clears a topology: removes all layer descriptors and sets size to 0

Returns
Status of computations
layers::forward::LayerDescriptor& get ( size_t  index)
inline

Element access

Parameters
[in]indexIndex of an accessed element
Returns
Reference to the element
const layers::forward::LayerDescriptor& get ( size_t  index) const
inline

Const element access

Parameters
[in]indexIndex of an accessed element
Returns
Reference to the element
layers::forward::LayerDescriptor& operator[] ( size_t  index)
inline

Element access

Parameters
[in]indexIndex of an accessed element
Returns
Reference to the element
const layers::forward::LayerDescriptor& operator[] ( size_t  index) const
inline

Const element access

Parameters
[in]indexIndex of an accessed element
Returns
Reference to the element
size_t push_back ( const layers::forward::LayerIfacePtr &  layer)
inline

Adds an element to the collection of layers and assigns the next available id to it

Parameters
[in]layerElement to add
Returns
Index of the element
size_t size ( ) const
inline

Number of layers in the topology

Returns
Size of the collection

The documentation for this class was generated from the following file:

For more complete information about compiler optimizations, see our Optimization Notice.