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

softmax_cross_layer_types.h
1 /* file: softmax_cross_layer_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 softmax cross-entropy layer types.
19 //--
20 */
21 
22 #ifndef __NEURAL_NENTWORK_LOSS_SOFTMAX_CROSS_LAYER_TYPES_H__
23 #define __NEURAL_NENTWORK_LOSS_SOFTMAX_CROSS_LAYER_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_types.h"
30 
31 namespace daal
32 {
33 namespace algorithms
34 {
35 namespace neural_networks
36 {
37 namespace layers
38 {
39 namespace loss
40 {
47 namespace softmax_cross
48 {
53 enum Method
54 {
55  defaultDense = 0,
56 };
57 
62 enum LayerDataId
63 {
64  auxProbabilities = layers::lastLayerInputLayout + 1,
65  auxGroundTruth,
66  lastLayerDataId = auxGroundTruth
67 };
68 
72 namespace interface1
73 {
74 
81 /* [Parameter source code] */
82 class DAAL_EXPORT Parameter: public layers::Parameter
83 {
84 public:
90  Parameter(const double accuracyThreshold_ = 1.0e-04, const size_t dimension_ = 1);
91 
92  double accuracyThreshold;
93  size_t dimension;
99  virtual services::Status check() const;
100 };
101 /* [Parameter source code] */
102 
103 } // namespace interface1
104 using interface1::Parameter;
105 
106 } // namespace softmax_cross
108 } // namespace loss
109 } // namespace layers
110 } // namespace neural_networks
111 } // namespace algorithm
112 } // namespace daal
113 #endif
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:62
daal
Definition: algorithm_base_common.h:31
daal_defines.h
daal::algorithms::neural_networks::layers::loss::softmax_cross::auxProbabilities
Definition: softmax_cross_layer_types.h:64
daal::algorithms::neural_networks::layers::loss::softmax_cross::auxGroundTruth
Definition: softmax_cross_layer_types.h:65
daal::algorithms::neural_networks::layers::loss::softmax_cross::interface1::Parameter::dimension
size_t dimension
Definition: softmax_cross_layer_types.h:93
daal::algorithms::neural_networks::layers::loss::softmax_cross::interface1::Parameter::accuracyThreshold
double accuracyThreshold
Definition: softmax_cross_layer_types.h:92
daal::algorithms::neural_networks::layers::loss::softmax_cross::defaultDense
Definition: softmax_cross_layer_types.h:55
daal::algorithms::neural_networks::layers::loss::softmax_cross::Method
Method
Computation methods for the softmax cross-entropy layer.
Definition: softmax_cross_layer_types.h:53
daal::algorithms::neural_networks::layers::loss::softmax_cross::interface1::Parameter
Parameters for the softmax cross-entropy layer.
Definition: softmax_cross_layer_types.h:82

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