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

loss_layer_backward.h
1 /* file: loss_layer_backward.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 interface for the backward loss layer in the batch processing mode
21 //--
22 */
23 
24 #ifndef __LOSS_LAYER_BACKWARD_H__
25 #define __LOSS_LAYER_BACKWARD_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_backward_types.h"
32 
33 namespace daal
34 {
35 namespace algorithms
36 {
37 namespace neural_networks
38 {
39 namespace layers
40 {
41 namespace loss
42 {
43 namespace backward
44 {
45 namespace interface1
46 {
70 class Batch : public layers::backward::LayerIfaceImpl
71 {
72 public:
73  typedef algorithms::neural_networks::layers::loss::backward::Input InputType;
74  typedef algorithms::neural_networks::layers::loss::backward::Result ResultType;
75 
80  Batch()
81  {
82  initialize();
83  };
84 
92  Batch(const Batch &other)
93  {
94  initialize();
95  }
96 
104  DAAL_DEPRECATED services::SharedPtr<Batch > clone() const
105  {
106  return services::SharedPtr<Batch >(cloneImpl());
107  }
108 
109 protected:
110  /*
111  * \DAAL_DEPRECATED
112  */
113  DAAL_DEPRECATED_VIRTUAL virtual Batch *cloneImpl() const DAAL_C11_OVERRIDE = 0;
114 
115  /*
116  * \DAAL_DEPRECATED
117  */
118  void initialize()
119  {}
120 };
122 } // namespace interface1
123 using interface1::Batch;
124 } // namespace backward
125 } // namespace loss
126 } // namespace layers
127 } // namespace neural_networks
128 } // namespace algorithms
129 } // namespace daal
130 #endif
daal::algorithms::neural_networks::layers::loss::backward::interface1::Batch::Batch
Batch()
Definition: loss_layer_backward.h:80
daal::algorithms::neural_networks::layers::loss::backward::interface1::Batch::Batch
Batch(const Batch &other)
Definition: loss_layer_backward.h:92
daal_defines.h
daal::algorithms::neural_networks::layers::loss::backward::interface1::Batch
Provides methods for the backward loss layer in the batch processing mode.
Definition: loss_layer_backward.h:70
daal::algorithms::neural_networks::layers::loss::backward::interface1::Batch::clone
DAAL_DEPRECATED services::SharedPtr< Batch > clone() const
Definition: loss_layer_backward.h:104

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