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

concat_layer_forward_types.h
1 /* file: concat_layer_forward_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 the forward concat layer
21 //--
22 */
23 
24 #ifndef __CONCAT_LAYER_FORWARD_TYPES_H__
25 #define __CONCAT_LAYER_FORWARD_TYPES_H__
26 
27 #include "algorithms/algorithm.h"
28 #include "data_management/data/tensor.h"
29 #include "data_management/data/homogen_tensor.h"
30 #include "data_management/data/homogen_numeric_table.h"
31 #include "services/daal_defines.h"
32 #include "algorithms/neural_networks/layers/layer_forward_types.h"
33 #include "algorithms/neural_networks/layers/concat/concat_layer_types.h"
34 
35 namespace daal
36 {
37 namespace algorithms
38 {
39 namespace neural_networks
40 {
41 namespace layers
42 {
46 namespace concat
47 {
57 namespace forward
58 {
62 namespace interface1
63 {
69 class DAAL_EXPORT Input : public layers::forward::Input
70 {
71 public:
72  typedef layers::forward::Input super;
77  Input();
78 
83  Input(const Input& other);
84 
88  using layers::forward::Input::get;
89 
93  using layers::forward::Input::set;
94 
95  /*
96  * \DAAL_DEPRECATED
97  */
98  virtual ~Input() {}
99 
107  DAAL_DEPRECATED data_management::TensorPtr get(layers::forward::InputLayerDataId id, size_t index) const;
108 
115  DAAL_DEPRECATED LayerDataPtr get(layers::forward::InputLayerDataId id) const;
116 
123  DAAL_DEPRECATED void set(layers::forward::InputLayerDataId id, const LayerDataPtr &value);
124 
132  DAAL_DEPRECATED void set(layers::forward::InputLayerDataId id, const data_management::TensorPtr &value, size_t index);
133 
142  DAAL_DEPRECATED_VIRTUAL virtual services::Status addData(const data_management::TensorPtr &dataTensor, size_t index) DAAL_C11_OVERRIDE;
143 
150  DAAL_DEPRECATED_VIRTUAL virtual services::Status eraseInputData() DAAL_C11_OVERRIDE;
151 
160  DAAL_DEPRECATED services::Status check(const daal::algorithms::Parameter *par, int method) const DAAL_C11_OVERRIDE;
161 
167  DAAL_DEPRECATED LayerInputLayout getLayout() DAAL_C11_OVERRIDE;
168 };
169 
175 class DAAL_EXPORT Result : public layers::forward::Result
176 {
177 public:
178  DECLARE_SERIALIZABLE_CAST(Result);
183  Result();
184  /*
185  * \DAAL_DEPRECATED
186  */
187  virtual ~Result() {};
188 
192  using layers::forward::Result::get;
193 
197  using layers::forward::Result::set;
198 
205  DAAL_DEPRECATED void set(LayerDataId id, const data_management::NumericTablePtr &value);
206 
213  DAAL_DEPRECATED data_management::NumericTablePtr get(layers::concat::LayerDataId id) const;
214 
223  DAAL_DEPRECATED_VIRTUAL virtual const services::Collection<size_t> getValueSize(const services::Collection<size_t> &inputSize,
224  const daal::algorithms::Parameter *par, const int method) const DAAL_C11_OVERRIDE;
225 
234  DAAL_DEPRECATED services::Collection<size_t> getValueSize(const services::Collection< services::Collection<size_t> > &inputSize,
235  const daal::algorithms::Parameter *parameter, const int method) DAAL_C11_OVERRIDE;
245  template <typename algorithmFPType>
246  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
247 
257  DAAL_DEPRECATED_VIRTUAL virtual services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter,
258  int method) const DAAL_C11_OVERRIDE;
259 
260 protected:
265  template<typename Archive, bool onDeserialize>
266  services::Status serialImpl(Archive *arch)
267  {
268  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
269  }
270 };
271 typedef services::SharedPtr<Result> ResultPtr;
272 
273 } // namespace interface1
274 using interface1::Input;
275 using interface1::Result;
276 using interface1::ResultPtr;
277 } // namespace forward
279 } // namespace concat
280 } // namespace layers
281 } // namespace neural_networks
282 } // namespace algorithm
283 } // namespace daal
284 #endif
daal::algorithms::neural_networks::layers::concat::forward::interface1::Input
Input objects for the forward concat layer
Definition: concat_layer_forward_types.h:69
daal::algorithms::neural_networks::layers::concat::forward::interface1::Result
Provides methods to access the result obtained with the compute() method of the forward concat layer...
Definition: concat_layer_forward_types.h:175
daal::algorithms::neural_networks::layers::LayerInputLayout
LayerInputLayout
Definition: layer_types.h:59
daal_defines.h
daal::algorithms::neural_networks::layers::forward::InputLayerDataId
InputLayerDataId
Definition: layer_forward_types.h:75
daal::algorithms::math::abs::value
Definition: abs_types.h:88
daal::algorithms::neural_networks::layers::concat::LayerDataId
LayerDataId
Identifiers of input objects for the backward concat layer and results for the forward concat layer...
Definition: concat_layer_types.h:66

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