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

loss_layer_forward.h
1 /* file: loss_layer_forward.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 loss layer.
19 //--
20 */
21 
22 #ifndef __LOSS_LAYER_FORWARD_H__
23 #define __LOSS_LAYER_FORWARD_H__
24 
25 #include "algorithms/algorithm.h"
26 #include "services/daal_defines.h"
27 #include "algorithms/neural_networks/layers/layer.h"
28 #include "algorithms/neural_networks/layers/loss/loss_layer_forward_types.h"
29 
30 namespace daal
31 {
32 namespace algorithms
33 {
34 namespace neural_networks
35 {
36 namespace layers
37 {
38 namespace loss
39 {
40 namespace forward
41 {
42 namespace interface1
43 {
65 class Batch : public layers::forward::LayerIfaceImpl
66 {
67 public:
68  typedef layers::forward::LayerIfaceImpl super;
69 
70  typedef algorithms::neural_networks::layers::loss::forward::Input InputType;
71  typedef algorithms::neural_networks::layers::loss::forward::Result ResultType;
72 
74  Batch()
75  {
76  initialize();
77  };
78 
85  Batch(const Batch &other)
86  {
87  initialize();
88  }
89 
96  services::SharedPtr<Batch > clone() const
97  {
98  return services::SharedPtr<Batch >(cloneImpl());
99  }
100 
101 protected:
102  virtual Batch *cloneImpl() const DAAL_C11_OVERRIDE = 0;
103 
104  void initialize()
105  {}
106 };
108 } // namespace interface1
109 using interface1::Batch;
110 } // namespace forward
111 } // namespace loss
112 } // namespace layers
113 } // namespace neural_networks
114 } // namespace algorithms
115 } // namespace daal
116 #endif
daal::algorithms::neural_networks::layers::loss::forward::interface1::Batch::Batch
Batch()
Definition: loss_layer_forward.h:74
daal
Definition: algorithm_base_common.h:31
daal::algorithms::neural_networks::layers::loss::forward::interface1::Batch::clone
services::SharedPtr< Batch > clone() const
Definition: loss_layer_forward.h:96
daal::algorithms::neural_networks::layers::loss::forward::interface1::Batch::Batch
Batch(const Batch &other)
Definition: loss_layer_forward.h:85
daal_defines.h
daal::algorithms::neural_networks::layers::loss::forward::interface1::Batch
Provides methods for the forward loss layer in the batch processing mode.
Definition: loss_layer_forward.h:65

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