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

neural_networks_prediction_input.h
1 /* file: neural_networks_prediction_input.h */
2 /*******************************************************************************
3 * Copyright 2014-2020 Intel Corporation
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *******************************************************************************/
17 
18 /*
19 //++
20 // Implementation of neural network algorithm interface.
21 //--
22 */
23 
24 #ifndef __NEURAL_NETWORKS_PREDICTION_INPUT_H__
25 #define __NEURAL_NETWORKS_PREDICTION_INPUT_H__
26 
27 #include "algorithms/algorithm.h"
28 
29 #include "data_management/data/data_serialize.h"
30 #include "services/daal_defines.h"
31 #include "algorithms/neural_networks/neural_networks_prediction_model.h"
32 
33 namespace daal
34 {
35 namespace algorithms
36 {
40 namespace neural_networks
41 {
42 namespace prediction
43 {
53 enum TensorInputId
54 {
55  data,
56  lastTensorInputId = data
57 };
58 
64 enum ModelInputId
65 {
66  model = lastTensorInputId + 1,
67  lastModelInputId = model
68 };
69 
73 namespace interface1
74 {
80 class DAAL_EXPORT Input : public daal::algorithms::Input
81 {
82 public:
83  /*
84  * \DAAL_DEPRECATED
85  */
86  Input();
87  /*
88  * \DAAL_DEPRECATED
89  */
90  Input(const Input& other);
91 
92  /*
93  * \DAAL_DEPRECATED
94  */
95  virtual ~Input() {};
96 
103  DAAL_DEPRECATED data_management::TensorPtr get(TensorInputId id) const;
104 
111  DAAL_DEPRECATED void set(TensorInputId id, const data_management::TensorPtr &value);
112 
119  DAAL_DEPRECATED ModelPtr get(ModelInputId id) const;
120 
127  DAAL_DEPRECATED void set(ModelInputId id, const ModelPtr &value);
128 
137  DAAL_DEPRECATED services::Status check(const daal::algorithms::Parameter *par, int method) const DAAL_C11_OVERRIDE;
138 };
139 } // namespace interface1
140 using interface1::Input;
142 }
143 }
144 }
145 } // namespace daal
146 #endif
daal::algorithms::neural_networks::prediction::TensorInputId
TensorInputId
Definition: neural_networks_prediction_input.h:53
daal::algorithms::neural_networks::prediction::prediction
Definition: neural_networks_prediction_result.h:55
daal::algorithms::neural_networks::prediction::interface1::Input
Input objects of the neural networks prediction algorithm.
Definition: neural_networks_prediction_input.h:80
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:64
daal_defines.h
daal::algorithms::neural_networks::prediction::data
Definition: neural_networks_prediction_input.h:55
daal::algorithms::math::abs::value
Definition: abs_types.h:88
daal::algorithms::neural_networks::prediction::model
Definition: neural_networks_prediction_input.h:66

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