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

logistic_cross_layer.h
1 /* file: logistic_cross_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 the logistic cross layer.
21 //--
22 */
23 
24 #ifndef __NEURAL_NENTWORK_LOSS_LOGISTIC_CROSS_LAYER_H__
25 #define __NEURAL_NENTWORK_LOSS_LOGISTIC_CROSS_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/loss/loss_layer.h"
32 #include "algorithms/neural_networks/layers/loss/logistic_cross_layer_types.h"
33 #include "algorithms/neural_networks/layers/loss/logistic_cross_layer_forward.h"
34 #include "algorithms/neural_networks/layers/loss/logistic_cross_layer_backward.h"
35 
36 namespace daal
37 {
38 namespace algorithms
39 {
40 namespace neural_networks
41 {
42 namespace layers
43 {
44 namespace loss
45 {
49 namespace logistic_cross
50 {
51 namespace interface1
52 {
75 template<typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
76 class Batch : public loss::Batch
77 {
78 public:
83  DAAL_DEPRECATED Batch()
84  {
85  forward::Batch<algorithmFPType, method> *forwardLayerObject = new forward::Batch<algorithmFPType, method>(parameter);
86  backward::Batch<algorithmFPType, method> *backwardLayerObject = new backward::Batch<algorithmFPType, method>(parameter);
87 
88  LayerIface::forwardLayer = services::SharedPtr<forward::Batch<algorithmFPType, method> >(forwardLayerObject);
89  LayerIface::backwardLayer = services::SharedPtr<backward::Batch<algorithmFPType, method> >(backwardLayerObject);
90  };
91 
92  Parameter parameter;
93 };
95 } // namespace interface1
96 using interface1::Batch;
97 
98 } // namespace logistic_cross
99 } // namespace loss
100 } // namespace layers
101 } // namespace neural_networks
102 } // namespace algorithms
103 } // namespace daal
104 #endif
daal::algorithms::neural_networks::layers::loss::logistic_cross::interface1::Batch::Batch
DAAL_DEPRECATED Batch()
Definition: logistic_cross_layer.h:83
daal::algorithms::neural_networks::layers::loss::interface1::Batch
Provides methods for the loss layer in the batch processing mode.
Definition: loss_layer.h:70
daal_defines.h
daal::algorithms::neural_networks::layers::loss::logistic_cross::interface1::Batch
Provides methods for the logistic cross-entropy layer in the batch processing mode.
Definition: logistic_cross_layer.h:76
daal::algorithms::neural_networks::layers::loss::logistic_cross::interface1::Parameter
Parameters for the logistic cross-entropy layer.
Definition: logistic_cross_layer_types.h:85
daal::algorithms::neural_networks::layers::loss::logistic_cross::interface1::Batch::parameter
Parameter parameter
Definition: logistic_cross_layer.h:90

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