C++ API Reference for Intel® Data Analytics Acceleration Library 2018 Update 3

split_layer_forward_types.h
1 /* file: split_layer_forward_types.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 the forward split layer
19 //--
20 */
21 
22 #ifndef __SPLIT_LAYER_FORWARD_TYPES_H__
23 #define __SPLIT_LAYER_FORWARD_TYPES_H__
24 
25 #include "algorithms/algorithm.h"
26 #include "data_management/data/tensor.h"
27 #include "data_management/data/homogen_tensor.h"
28 #include "services/daal_defines.h"
29 #include "algorithms/neural_networks/layers/layer_forward_types.h"
30 #include "algorithms/neural_networks/layers/split/split_layer_types.h"
31 
32 namespace daal
33 {
34 namespace algorithms
35 {
36 namespace neural_networks
37 {
38 namespace layers
39 {
43 namespace split
44 {
54 namespace forward
55 {
60 enum ResultLayerDataId
61 {
62  valueCollection = 1
63 };
64 
68 namespace interface1
69 {
74 class DAAL_EXPORT Input : public layers::forward::Input
75 {
76 public:
77  typedef layers::forward::Input super;
79  Input();
80 
82  Input(const Input& other);
83 
87  using layers::forward::Input::get;
88 
92  using layers::forward::Input::set;
93 
94  virtual ~Input() {}
95 };
96 
101 class DAAL_EXPORT Result : public layers::forward::Result
102 {
103 public:
104  DECLARE_SERIALIZABLE_CAST(Result);
106  Result();
107  virtual ~Result() {};
108 
112  using layers::forward::Result::get;
113 
117  using layers::forward::Result::set;
118 
125  data_management::TensorPtr get(ResultLayerDataId id, size_t index) const;
126 
132  LayerDataPtr get(ResultLayerDataId id) const;
133 
139  void set(ResultLayerDataId id, const LayerDataPtr &value);
140 
147  void set(ResultLayerDataId id, const data_management::TensorPtr &value, size_t index);
148 
153  LayerResultLayout getLayout() DAAL_C11_OVERRIDE;
154 
160  virtual data_management::TensorPtr getValue(size_t index) const DAAL_C11_OVERRIDE;
161 
170  services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *par, int method) const DAAL_C11_OVERRIDE;
171 
179  virtual const services::Collection<size_t> getValueSize(const services::Collection<size_t> &inputSize,
180  const daal::algorithms::Parameter *par, const int method) const DAAL_C11_OVERRIDE;
181 
189  services::Collection< services::Collection<size_t> > getValueCollectionSize(const services::Collection<size_t> &inputSize,
190  const daal::algorithms::Parameter *parameter, const int method) DAAL_C11_OVERRIDE;
191 
200  template <typename algorithmFPType>
201  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
202 
203 protected:
205  template<typename Archive, bool onDeserialize>
206  services::Status serialImpl(Archive *arch)
207  {
208  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
209  }
210 };
211 typedef services::SharedPtr<Result> ResultPtr;
212 } // namespace interface1
213 using interface1::Input;
214 using interface1::Result;
215 using interface1::ResultPtr;
216 } // namespace forward
218 } // namespace split
219 } // namespace layers
220 } // namespace neural_networks
221 } // namespace algorithm
222 } // namespace daal
223 #endif
daal
Definition: algorithm_base_common.h:31
daal_defines.h
daal::algorithms::neural_networks::layers::split::forward::valueCollection
Definition: split_layer_forward_types.h:62
daal::algorithms::neural_networks::layers::split::forward::interface1::Input
Input objects for the forward split layer
Definition: split_layer_forward_types.h:74
daal::algorithms::neural_networks::layers::LayerResultLayout
LayerResultLayout
Definition: layer_types.h:68
daal::algorithms::math::abs::value
Definition: abs_types.h:86
daal::algorithms::neural_networks::layers::split::forward::ResultLayerDataId
ResultLayerDataId
Definition: split_layer_forward_types.h:60
daal::algorithms::neural_networks::layers::split::forward::interface1::Result
Provides methods to access the result obtained with the compute() method of the forward split layer...
Definition: split_layer_forward_types.h:101

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