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

softmax_cross_layer_types.h
1 /* file: softmax_cross_layer_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 softmax cross-entropy layer types.
21 //--
22 */
23 
24 #ifndef __NEURAL_NENTWORK_LOSS_SOFTMAX_CROSS_LAYER_TYPES_H__
25 #define __NEURAL_NENTWORK_LOSS_SOFTMAX_CROSS_LAYER_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 "services/daal_defines.h"
31 #include "algorithms/neural_networks/layers/layer_types.h"
32 
33 namespace daal
34 {
35 namespace algorithms
36 {
37 namespace neural_networks
38 {
39 namespace layers
40 {
41 namespace loss
42 {
49 namespace softmax_cross
50 {
55 enum Method
56 {
57  defaultDense = 0,
58 };
59 
64 enum LayerDataId
65 {
66  auxProbabilities = layers::lastLayerInputLayout + 1,
67  auxGroundTruth,
68  lastLayerDataId = auxGroundTruth
69 };
70 
74 namespace interface1
75 {
76 
84 /* [Parameter source code] */
85 class DAAL_EXPORT Parameter: public layers::Parameter
86 {
87 public:
94  Parameter(const double accuracyThreshold_ = 1.0e-04, const size_t dimension_ = 1);
95 
96  double accuracyThreshold;
97  size_t dimension;
104  DAAL_DEPRECATED_VIRTUAL virtual services::Status check() const;
105 };
106 /* [Parameter source code] */
107 
108 } // namespace interface1
109 using interface1::Parameter;
110 
111 } // namespace softmax_cross
113 } // namespace loss
114 } // namespace layers
115 } // namespace neural_networks
116 } // namespace algorithm
117 } // namespace daal
118 #endif
daal::algorithms::neural_networks::layers::loss::softmax_cross::auxProbabilities
Definition: softmax_cross_layer_types.h:66
daal::algorithms::neural_networks::layers::loss::softmax_cross::interface1::Parameter
Parameters for the softmax cross-entropy layer.
Definition: softmax_cross_layer_types.h:85
daal::algorithms::neural_networks::layers::loss::softmax_cross::defaultDense
Definition: softmax_cross_layer_types.h:57
daal_defines.h
daal::algorithms::neural_networks::layers::loss::softmax_cross::auxGroundTruth
Definition: softmax_cross_layer_types.h:67
daal::algorithms::neural_networks::layers::loss::softmax_cross::Method
Method
Computation methods for the softmax cross-entropy layer.
Definition: softmax_cross_layer_types.h:55
daal::algorithms::neural_networks::layers::loss::softmax_cross::interface1::Parameter::dimension
size_t dimension
Definition: softmax_cross_layer_types.h:97
daal::algorithms::neural_networks::layers::loss::softmax_cross::LayerDataId
LayerDataId
Identifiers of input objects for the backward softmax cross-entropy layer and results for the forward...
Definition: softmax_cross_layer_types.h:64
daal::algorithms::neural_networks::layers::loss::softmax_cross::interface1::Parameter::accuracyThreshold
double accuracyThreshold
Definition: softmax_cross_layer_types.h:96

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