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

Static Public Member Functions | List of all members
Model Class Reference

Class Model object for the prediction stage of neural network algorithm. More...

Static Public Member Functions

static DAAL_DEPRECATED
services::SharedPtr< Model
create (services::Status *stat=NULL)
 
static DAAL_DEPRECATED
services::SharedPtr< Model
create (const neural_networks::ForwardLayersPtr &forwardLayersForModel, const services::SharedPtr< services::Collection< layers::NextLayers > > &nextLayersForModel, services::Status *stat=NULL)
 
template<typename modelFPType >
DAAL_EXPORT static
DAAL_DEPRECATED
services::SharedPtr< Model
create (const neural_networks::ForwardLayersPtr &forwardLayersForModel, const services::SharedPtr< services::Collection< layers::NextLayers > > &nextLayersForModel, bool storeWeightsInTable, services::Status *stat=NULL)
 
static DAAL_DEPRECATED
services::SharedPtr< Model
create (const prediction::Topology &topology, services::Status *stat=NULL)
 

Class Declaration

Deprecated:
This item will be removed in a future release.

Constructor & Destructor Documentation

Model ( const neural_networks::ForwardLayersPtr &  forwardLayersForModel,
const services::SharedPtr< services::Collection< layers::NextLayers > > &  nextLayersForModel 
)

Constructs model object for the prediction stage of neural network from the list of forward stages of the layers and the list of connections between the layers

Parameters
[in]forwardLayersForModelList of forward stages of the layers
[in]nextLayersForModelList of next layers for each layer with corresponding index
Deprecated:
This item will be removed in a future release.
DAAL_EXPORT Model ( const neural_networks::ForwardLayersPtr &  forwardLayersForModel,
const services::SharedPtr< services::Collection< layers::NextLayers > > &  nextLayersForModel,
modelFPType  dummy,
bool  storeWeightsInTable 
)

Constructs model object for the prediction stage of neural network from the list of forward stages of the layers and the list of connections between the layers. And allocates storage for weights and biases of the forward layers is needed.

Parameters
[in]forwardLayersForModelList of forward stages of the layers
[in]nextLayersForModelList of next layers for each layer with corresponding index
[in]dummyData type to be used to allocate storage for weights and biases
[in]storeWeightsInTableFlag. If true then the storage for weights and biases is allocated as a single piece of memory, otherwise weights and biases are allocated as separate tensors
Deprecated:
This item will be removed in a future release.
Model ( const prediction::Topology &  topology)

Constructs model object for the prediction stage of neural network from a collection of layer descriptors

Parameters
[in]topologyCollection of layer descriptors of every inserted layer
Deprecated:
This item will be removed in a future release.
DAAL_DEPRECATED Model ( services::Status &  st)
protected

Batch size that was used during the model allocation

Member Function Documentation

services::Status allocate ( const services::Collection< size_t > &  sampleSize,
const daal::algorithms::Parameter *  parameter = NULL 
)
inline

Allocates the buffers needed for the prediction using neural network

Parameters
[in]sampleSizeDimensionality of the batch for the input to the first layer
[in]parameterPrediction model parameter
Returns
Status of computations
Deprecated:
This item will be removed in a future release.
static DAAL_DEPRECATED services::SharedPtr<Model> create ( services::Status *  stat = NULL)
static

Constructs empty model for the prediction stage of neural network

Parameters
[out]statStatus of the model construction
Returns
Empty model for the prediction stage of neural network
Deprecated:
This item will be removed in a future release.
static DAAL_DEPRECATED services::SharedPtr<Model> create ( const neural_networks::ForwardLayersPtr &  forwardLayersForModel,
const services::SharedPtr< services::Collection< layers::NextLayers > > &  nextLayersForModel,
services::Status *  stat = NULL 
)
static

Constructs model object for the prediction stage of neural network from the list of forward stages of the layers and the list of connections between the layers

Parameters
[in]forwardLayersForModelList of forward stages of the layers
[in]nextLayersForModelList of next layers for each layer with corresponding index
[out]statStatus of the model construction
Returns
Model object for the prediction stage of neural network
Deprecated:
This item will be removed in a future release.
DAAL_EXPORT static DAAL_DEPRECATED services::SharedPtr<Model> create ( const neural_networks::ForwardLayersPtr &  forwardLayersForModel,
const services::SharedPtr< services::Collection< layers::NextLayers > > &  nextLayersForModel,
bool  storeWeightsInTable,
services::Status *  stat = NULL 
)
static

Constructs model object for the prediction stage of neural network from the list of forward stages of the layers and the list of connections between the layers. And allocates storage for weights and biases of the forward layers is needed.

Parameters
[in]forwardLayersForModelList of forward stages of the layers
[in]nextLayersForModelList of next layers for each layer with corresponding index
[in]storeWeightsInTableFlag. If true then the storage for weights and biases is allocated as a single piece of memory,
[out]statStatus of the model construction
Returns
Model object for the prediction stage of neural network
Deprecated:
This item will be removed in a future release.
static DAAL_DEPRECATED services::SharedPtr<Model> create ( const prediction::Topology &  topology,
services::Status *  stat = NULL 
)
static

Constructs model object for the prediction stage of neural network from a collection of layer descriptors

Parameters
[in]topologyCollection of layer descriptors of every inserted layer
[out]statStatus of the model construction
Returns
Model object for the prediction stage of neural network
Deprecated:
This item will be removed in a future release.
DAAL_DEPRECATED const layers::forward::LayerIfacePtr getLayer ( size_t  index) const
inline

Returns the forward stage of a layer with certain index in the network

Parameters
[in]indexIndex of the layer in the network
Returns
Forward stage of a layer with certain index in the network
Deprecated:
This item will be removed in a future release.
DAAL_DEPRECATED const neural_networks::ForwardLayersPtr getLayers ( ) const
inline

Returns the list of forward stages of the layers

Returns
List of forward stages of the layers
Deprecated:
This item will be removed in a future release.
DAAL_DEPRECATED services::Status setLayers ( const neural_networks::ForwardLayersPtr &  forwardLayers,
const services::SharedPtr< services::Collection< layers::NextLayers > > &  nextLayers 
)
inline

Sets list of forward stages of the layers and the list of connections between the layers

Parameters
[in]forwardLayersList of forward stages of the layers
[in]nextLayersList of next layers for each layer with corresponding index
Returns
Status of computations
Deprecated:
This item will be removed in a future release.

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

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