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

loss_layer_forward.h
1 /* file: loss_layer_forward.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 forward loss layer.
21 //--
22 */
23 
24 #ifndef __LOSS_LAYER_FORWARD_H__
25 #define __LOSS_LAYER_FORWARD_H__
26 
27 #include "algorithms/algorithm.h"
28 #include "services/daal_defines.h"
29 #include "algorithms/neural_networks/layers/layer.h"
30 #include "algorithms/neural_networks/layers/loss/loss_layer_forward_types.h"
31 
32 namespace daal
33 {
34 namespace algorithms
35 {
36 namespace neural_networks
37 {
38 namespace layers
39 {
40 namespace loss
41 {
42 namespace forward
43 {
44 namespace interface1
45 {
69 class Batch : public layers::forward::LayerIfaceImpl
70 {
71 public:
72  typedef layers::forward::LayerIfaceImpl super;
73 
74  typedef algorithms::neural_networks::layers::loss::forward::Input InputType;
75  typedef algorithms::neural_networks::layers::loss::forward::Result ResultType;
76 
81  Batch()
82  {
83  initialize();
84  };
85 
93  Batch(const Batch &other)
94  {
95  initialize();
96  }
97 
105  DAAL_DEPRECATED services::SharedPtr<Batch > clone() const
106  {
107  return services::SharedPtr<Batch >(cloneImpl());
108  }
109 
110 protected:
111  /*
112  * \DAAL_DEPRECATED
113  */
114  DAAL_DEPRECATED_VIRTUAL virtual Batch *cloneImpl() const DAAL_C11_OVERRIDE = 0;
115 
116  /*
117  * \DAAL_DEPRECATED
118  */
119  void initialize()
120  {}
121 };
123 } // namespace interface1
124 using interface1::Batch;
125 } // namespace forward
126 } // namespace loss
127 } // namespace layers
128 } // namespace neural_networks
129 } // namespace algorithms
130 } // namespace daal
131 #endif
daal::algorithms::neural_networks::layers::loss::forward::interface1::Batch::clone
DAAL_DEPRECATED services::SharedPtr< Batch > clone() const
Definition: loss_layer_forward.h:105
daal::algorithms::neural_networks::layers::loss::forward::interface1::Batch::Batch
Batch(const Batch &other)
Definition: loss_layer_forward.h:93
daal::algorithms::neural_networks::layers::loss::forward::interface1::Batch::Batch
Batch()
Definition: loss_layer_forward.h:81
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:69
daal_defines.h

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