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

spatial_pooling2d_layer_forward_types.h
1 /* file: spatial_pooling2d_layer_forward_types.h */
2 /*******************************************************************************
3 * Copyright 2014-2019 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 2D spatial layer types.
19 //--
20 */
21 
22 #ifndef __SPATIAL_POOLING2D_LAYER_FORWARD_TYPES_H__
23 #define __SPATIAL_POOLING2D_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 "data_management/data/homogen_numeric_table.h"
29 #include "services/daal_defines.h"
30 #include "algorithms/neural_networks/layers/layer_forward_types.h"
31 #include "algorithms/neural_networks/layers/spatial_pooling2d/spatial_stochastic_pooling2d_layer_types.h"
32 
33 namespace daal
34 {
35 namespace algorithms
36 {
37 namespace neural_networks
38 {
39 namespace layers
40 {
41 namespace spatial_pooling2d
42 {
52 namespace forward
53 {
57 namespace interface1
58 {
63 class DAAL_EXPORT Input : public layers::forward::Input
64 {
65 public:
66  typedef layers::forward::Input super;
70  Input();
71 
73  Input(const Input& other);
74 
75  virtual ~Input() {}
76 
77  using layers::forward::Input::get;
78  using layers::forward::Input::set;
79 
84  virtual const services::Collection<size_t> getWeightsSizes(const layers::Parameter *parameter) const DAAL_C11_OVERRIDE;
85 
90  virtual const services::Collection<size_t> getBiasesSizes(const layers::Parameter *parameter) const DAAL_C11_OVERRIDE;
91 
99  services::Status check(const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
100 };
101 
102 
108 class DAAL_EXPORT Result : public layers::forward::Result
109 {
110 public:
112  Result();
113  virtual ~Result() {}
114 
115  using layers::forward::Result::get;
116  using layers::forward::Result::set;
117 
122  virtual const services::Collection<size_t> getValueSize(const services::Collection<size_t> &inputSize,
123  const daal::algorithms::Parameter *par, const int method) const DAAL_C11_OVERRIDE;
124 
133  template <typename algorithmFPType>
134  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
135 
144  services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
145 
146  static services::Collection<size_t> computeValueDimensions(const services::Collection<size_t> &inputDims, const Parameter *param);
147 
148  data_management::NumericTablePtr createAuxInputDimensions(const services::Collection<size_t> &dataDims) const;
149 };
150 
151 } // namespace interface1
152 using interface1::Input;
153 using interface1::Result;
154 
155 } // namespace forward
157 } // namespace spatial_pooling2d
158 } // namespace layers
159 } // namespace neural_networks
160 } // namespace algorithm
161 } // namespace daal
162 
163 #endif
daal::algorithms::neural_networks::layers::spatial_pooling2d::forward::interface1::Result
Provides methods to access the result obtained with the compute() method of the forward 2D spatial la...
Definition: spatial_pooling2d_layer_forward_types.h:108
daal
Definition: algorithm_base_common.h:31
daal::algorithms::neural_networks::layers::spatial_pooling2d::forward::interface1::Input
Input objects for the forward 2D spatial layer
Definition: spatial_pooling2d_layer_forward_types.h:63
daal_defines.h

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