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

smoothrelu_types.h
1 /* file: smoothrelu_types.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 SmoothReLU algorithm interface.
21 //--
22 */
23 
24 #ifndef __SMOOTHRELU_TYPES_H__
25 #define __SMOOTHRELU_TYPES_H__
26 
27 #include "algorithms/algorithm.h"
28 #include "data_management/data/numeric_table.h"
29 #include "data_management/data/homogen_numeric_table.h"
30 #include "services/daal_defines.h"
31 
32 namespace daal
33 {
34 namespace algorithms
35 {
39 namespace math
40 {
50 namespace smoothrelu
51 {
56 enum Method
57 {
58  defaultDense = 0
59 };
60 
65 enum InputId
66 {
67  data,
68  lastInputId = data
69 };
70 
75 enum ResultId
76 {
77  value,
78  lastResultId = value
79 };
80 
84 namespace interface1
85 {
91 class DAAL_EXPORT Input : public daal::algorithms::Input
92 {
93 public:
94  /*
95  * \DAAL_DEPRECATED
96  */
97  Input();
98 
103  Input(const Input& other) : daal::algorithms::Input(other){}
104 
105  /*
106  * \DAAL_DEPRECATED
107  */
108  DAAL_DEPRECATED_VIRTUAL virtual ~Input() {}
109 
115  data_management::NumericTablePtr get(InputId id) const;
116 
122  void set(InputId id, const data_management::NumericTablePtr &ptr);
123 
131  services::Status check(const daal::algorithms::Parameter *par, int method) const DAAL_C11_OVERRIDE;
132 };
133 
139 class DAAL_EXPORT Result : public daal::algorithms::Result
140 {
141 public:
142  DECLARE_SERIALIZABLE_CAST(Result);
143  /*
144  * \DAAL_DEPRECATED
145  */
146  Result();
147 
148  /*
149  * \DAAL_DEPRECATED
150  */
151  DAAL_DEPRECATED_VIRTUAL virtual ~Result() {};
152 
161  template <typename algorithmFPType>
162  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *par, const int method);
163 
169  data_management::NumericTablePtr get(ResultId id) const;
170 
176  void set(ResultId id, const data_management::NumericTablePtr &ptr);
177 
186  services::Status check(const daal::algorithms::Input *in, const daal::algorithms::Parameter *par, int method) const DAAL_C11_OVERRIDE;
187 
188 protected:
190  template<typename Archive, bool onDeserialize>
191  services::Status serialImpl(Archive *arch)
192  {
193  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
194  }
195 };
196 typedef services::SharedPtr<Result> ResultPtr;
197 
199 } // namespace interface1
200 using interface1::Input;
201 using interface1::Result;
202 using interface1::ResultPtr;
203 
204 } // namespace smoothrelu
205 } // namespace math
206 } // namespace algorithm
207 } // namespace daal
208 #endif
daal::algorithms::math::smoothrelu::interface1::Result
Results obtained with the compute() method of the SmoothReLU algorithm in the batch processing mode...
Definition: smoothrelu_types.h:139
daal::algorithms::math::smoothrelu::InputId
InputId
Definition: smoothrelu_types.h:65
daal::algorithms::math::smoothrelu::data
Definition: smoothrelu_types.h:67
daal::algorithms::math::smoothrelu::ResultId
ResultId
Definition: smoothrelu_types.h:75
daal_defines.h
daal::algorithms::math::smoothrelu::Method
Method
Definition: smoothrelu_types.h:56
daal::algorithms::math::smoothrelu::defaultDense
Definition: smoothrelu_types.h:58
daal::algorithms::math::smoothrelu::interface1::Input::Input
Input(const Input &other)
Definition: smoothrelu_types.h:103
daal::algorithms::math::smoothrelu::interface1::Input
Input parameters for the SmoothReLU algorithm
Definition: smoothrelu_types.h:91
daal::algorithms::math::smoothrelu::value
Definition: smoothrelu_types.h:77

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