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

convolution2d_layer.h
1 /* file: convolution2d_layer.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 two-dimensional (2D) convolution neural network layer.
21 //--
22 */
23 
24 #ifndef __CONVOLUTION2D_LAYER_H__
25 #define __CONVOLUTION2D_LAYER_H__
26 
27 #include "algorithms/algorithm.h"
28 #include "data_management/data/tensor.h"
29 #include "services/daal_defines.h"
30 #include "algorithms/neural_networks/layers/layer.h"
31 #include "algorithms/neural_networks/layers/convolution2d/convolution2d_layer_types.h"
32 #include "algorithms/neural_networks/layers/convolution2d/convolution2d_layer_forward.h"
33 #include "algorithms/neural_networks/layers/convolution2d/convolution2d_layer_backward.h"
34 
35 namespace daal
36 {
37 namespace algorithms
38 {
39 namespace neural_networks
40 {
41 namespace layers
42 {
46 namespace convolution2d
47 {
51 namespace interface1
52 {
72 template<typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
73 class Batch : public LayerIface
74 {
75 public:
76  Parameter parameter;
82  DAAL_DEPRECATED Batch()
83  {
84  forward::Batch<algorithmFPType, method> *forwardLayerObject = new forward::Batch<algorithmFPType, method>(parameter);
85  backward::Batch<algorithmFPType, method> *backwardLayerObject = new backward::Batch<algorithmFPType, method>(parameter);
86 
87  LayerIface::forwardLayer = services::SharedPtr<forward::Batch<algorithmFPType, method> >(forwardLayerObject);
88  LayerIface::backwardLayer = services::SharedPtr<backward::Batch<algorithmFPType, method> >(backwardLayerObject);
89  };
90 };
92 } // namespace interface1
93 using interface1::Batch;
94 
95 } // namespace convolution2d
96 } // namespace layers
97 } // namespace neural_networks
98 } // namespace algorithms
99 } // namespace daal
100 #endif
daal::algorithms::neural_networks::layers::convolution2d::interface1::Batch
Computes the result of the forward and backward 2D convolution layer of neural network in the batch p...
Definition: convolution2d_layer.h:73
daal::algorithms::neural_networks::layers::convolution2d::interface1::Batch::Batch
DAAL_DEPRECATED Batch()
Definition: convolution2d_layer.h:82
daal::algorithms::neural_networks::layers::convolution2d::interface1::Parameter
2D convolution layer parameters
Definition: convolution2d_layer_types.h:146
daal_defines.h
daal::algorithms::neural_networks::layers::convolution2d::interface1::Batch::parameter
Parameter parameter
Definition: convolution2d_layer.h:76

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