C++ API Reference for Intel® Data Analytics Acceleration Library 2018 Update 2

loss_layer_forward.h
1 /* file: loss_layer_forward.h */
2 /*******************************************************************************
3 * Copyright 2014-2018 Intel Corporation
4 * All Rights Reserved.
5 *
6 * If this software was obtained under the Intel Simplified Software License,
7 * the following terms apply:
8 *
9 * The source code, information and material ("Material") contained herein is
10 * owned by Intel Corporation or its suppliers or licensors, and title to such
11 * Material remains with Intel Corporation or its suppliers or licensors. The
12 * Material contains proprietary information of Intel or its suppliers and
13 * licensors. The Material is protected by worldwide copyright laws and treaty
14 * provisions. No part of the Material may be used, copied, reproduced,
15 * modified, published, uploaded, posted, transmitted, distributed or disclosed
16 * in any way without Intel's prior express written permission. No license under
17 * any patent, copyright or other intellectual property rights in the Material
18 * is granted to or conferred upon you, either expressly, by implication,
19 * inducement, estoppel or otherwise. Any license under such intellectual
20 * property rights must be express and approved by Intel in writing.
21 *
22 * Unless otherwise agreed by Intel in writing, you may not remove or alter this
23 * notice or any other notice embedded in Materials by Intel or Intel's
24 * suppliers or licensors in any way.
25 *
26 *
27 * If this software was obtained under the Apache License, Version 2.0 (the
28 * "License"), the following terms apply:
29 *
30 * You may not use this file except in compliance with the License. You may
31 * obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
32 *
33 *
34 * Unless required by applicable law or agreed to in writing, software
35 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
36 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
37 *
38 * See the License for the specific language governing permissions and
39 * limitations under the License.
40 *******************************************************************************/
41 
42 /*
43 //++
44 // Implementation of the forward loss layer.
45 //--
46 */
47 
48 #ifndef __LOSS_LAYER_FORWARD_H__
49 #define __LOSS_LAYER_FORWARD_H__
50 
51 #include "algorithms/algorithm.h"
52 #include "services/daal_defines.h"
53 #include "algorithms/neural_networks/layers/layer.h"
54 #include "algorithms/neural_networks/layers/loss/loss_layer_forward_types.h"
55 
56 namespace daal
57 {
58 namespace algorithms
59 {
60 namespace neural_networks
61 {
62 namespace layers
63 {
64 namespace loss
65 {
66 namespace forward
67 {
68 namespace interface1
69 {
91 class Batch : public layers::forward::LayerIfaceImpl
92 {
93 public:
94  typedef layers::forward::LayerIfaceImpl super;
95 
96  typedef algorithms::neural_networks::layers::loss::forward::Input InputType;
97  typedef algorithms::neural_networks::layers::loss::forward::Result ResultType;
98 
100  Batch()
101  {
102  initialize();
103  };
104 
111  Batch(const Batch &other)
112  {
113  initialize();
114  }
115 
122  services::SharedPtr<Batch > clone() const
123  {
124  return services::SharedPtr<Batch >(cloneImpl());
125  }
126 
127 protected:
128  virtual Batch *cloneImpl() const DAAL_C11_OVERRIDE = 0;
129 
130  void initialize()
131  {}
132 };
134 } // namespace interface1
135 using interface1::Batch;
136 } // namespace forward
137 } // namespace loss
138 } // namespace layers
139 } // namespace neural_networks
140 } // namespace algorithms
141 } // namespace daal
142 #endif
daal::algorithms::neural_networks::layers::loss::forward::interface1::Batch::Batch
Batch()
Definition: loss_layer_forward.h:100
daal
Definition: algorithm_base_common.h:57
daal::algorithms::neural_networks::layers::forward::interface1::LayerIface
Abstract class which defines interface for the layer.
Definition: layer_forward.h:86
daal::algorithms::neural_networks::layers::loss::forward::interface1::Result
Provides methods to access the result obtained with the compute() method of the forward loss layer...
Definition: loss_layer_forward_types.h:150
daal::algorithms::neural_networks::layers::loss::forward::interface1::Input
Input objects for the forward loss layer
Definition: loss_layer_forward_types.h:99
daal::algorithms::neural_networks::layers::loss::forward::interface1::Batch::Batch
Batch(const Batch &other)
Definition: loss_layer_forward.h:111
daal::algorithms::neural_networks::layers::loss::forward::interface1::Batch::clone
services::SharedPtr< Batch > clone() const
Definition: loss_layer_forward.h:122
daal_defines.h
daal::services::interface1::SharedPtr
Shared pointer that retains shared ownership of an object through a pointer. Several SharedPtr object...
Definition: daal_shared_ptr.h:187
daal::algorithms::neural_networks::layers::forward::interface1::Result
Provides methods to access the result obtained with the compute() method of the layer algorithm...
Definition: layer_forward_types.h:241
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:91
daal::algorithms::neural_networks::layers::forward::interface1::Input
Input objects for layer algorithm
Definition: layer_forward_types.h:149
daal::algorithms::neural_networks::layers::forward::interface1::LayerIfaceImpl
Implements the abstract interface LayerIface. LayerIfaceImpl is, in turn, the base class for the clas...
Definition: layer_forward.h:169

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