C++ API Reference for Intel® Data Analytics Acceleration Library 2019

neural_networks_prediction_input.h
1 /* file: neural_networks_prediction_input.h */
2 /*******************************************************************************
3 * Copyright 2014-2018 Intel Corporation.
4 *
5 * This software and the related documents are Intel copyrighted materials, and
6 * your use of them is governed by the express license under which they were
7 * provided to you (License). Unless the License provides otherwise, you may not
8 * use, modify, copy, publish, distribute, disclose or transmit this software or
9 * the related documents without Intel's prior written permission.
10 *
11 * This software and the related documents are provided as is, with no express
12 * or implied warranties, other than those that are expressly stated in the
13 * License.
14 *******************************************************************************/
15 
16 /*
17 //++
18 // Implementation of neural network algorithm interface.
19 //--
20 */
21 
22 #ifndef __NEURAL_NETWORKS_PREDICTION_INPUT_H__
23 #define __NEURAL_NETWORKS_PREDICTION_INPUT_H__
24 
25 #include "algorithms/algorithm.h"
26 
27 #include "data_management/data/data_serialize.h"
28 #include "services/daal_defines.h"
29 #include "algorithms/neural_networks/neural_networks_prediction_model.h"
30 
31 namespace daal
32 {
33 namespace algorithms
34 {
38 namespace neural_networks
39 {
40 namespace prediction
41 {
51 enum TensorInputId
52 {
53  data,
54  lastTensorInputId = data
55 };
56 
62 enum ModelInputId
63 {
64  model = lastTensorInputId + 1,
65  lastModelInputId = model
66 };
67 
71 namespace interface1
72 {
77 class DAAL_EXPORT Input : public daal::algorithms::Input
78 {
79 public:
80  Input();
81  Input(const Input& other);
82 
83  virtual ~Input() {};
84 
90  data_management::TensorPtr get(TensorInputId id) const;
91 
97  void set(TensorInputId id, const data_management::TensorPtr &value);
98 
104  ModelPtr get(ModelInputId id) const;
105 
111  void set(ModelInputId id, const ModelPtr &value);
112 
120  services::Status check(const daal::algorithms::Parameter *par, int method) const DAAL_C11_OVERRIDE;
121 };
122 } // namespace interface1
123 using interface1::Input;
125 }
126 }
127 }
128 } // namespace daal
129 #endif
daal
Definition: algorithm_base_common.h:31
daal::algorithms::neural_networks::prediction::ModelInputId
ModelInputId
Available identifiers of input Model objects in the prediction stage of the neural network algorithm...
Definition: neural_networks_prediction_input.h:62
daal_defines.h
daal::algorithms::neural_networks::prediction::TensorInputId
TensorInputId
Definition: neural_networks_prediction_input.h:51
daal::algorithms::neural_networks::prediction::interface1::Input
Input objects of the neural networks prediction algorithm.
Definition: neural_networks_prediction_input.h:77
daal::algorithms::neural_networks::prediction::model
Definition: neural_networks_prediction_input.h:64
daal::algorithms::neural_networks::prediction::data
Definition: neural_networks_prediction_input.h:53
daal::algorithms::classifier::prediction::prediction
Definition: classifier_predict_types.h:76
daal::algorithms::math::abs::value
Definition: abs_types.h:86

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