48 #ifndef __FULLYCONNECTED_LAYER_H__
49 #define __FULLYCONNECTED_LAYER_H__
51 #include "algorithms/algorithm.h"
52 #include "data_management/data/tensor.h"
53 #include "services/daal_defines.h"
54 #include "algorithms/neural_networks/layers/layer.h"
55 #include "algorithms/neural_networks/layers/fullyconnected/fullyconnected_layer_types.h"
56 #include "algorithms/neural_networks/layers/fullyconnected/fullyconnected_layer_forward.h"
57 #include "algorithms/neural_networks/layers/fullyconnected/fullyconnected_layer_backward.h"
63 namespace neural_networks
70 namespace fullyconnected
94 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
95 class Batch :
public LayerIface
102 Batch(
size_t nOutputs): parameter(nOutputs)
104 forward::Batch<algorithmFPType, method> *forwardLayerObject =
new forward::Batch<algorithmFPType, method>(parameter);
105 backward::Batch<algorithmFPType, method> *backwardLayerObject =
new backward::Batch<algorithmFPType, method>(parameter);
107 LayerIface::forwardLayer = services::SharedPtr<forward::Batch<algorithmFPType, method> >(forwardLayerObject);
108 LayerIface::backwardLayer = services::SharedPtr<backward::Batch<algorithmFPType, method> >(backwardLayerObject);
113 using interface1::Batch;
daal::algorithms::neural_networks::layers::fullyconnected::interface1::Parameter
Fully-connected layer parameters.
Definition: fullyconnected_layer_types.h:99
daal
Definition: algorithm_base_common.h:57
daal::algorithms::neural_networks::layers::fullyconnected::interface1::Batch
Computes the result of the forward and backward fully-connected layer of neural network in the batch ...
Definition: fullyconnected_layer.h:95
daal::algorithms::neural_networks::layers::fullyconnected::interface1::Batch::Batch
Batch(size_t nOutputs)
Definition: fullyconnected_layer.h:102
daal::algorithms::neural_networks::layers::fullyconnected::interface1::Batch::parameter
Parameter parameter
Definition: fullyconnected_layer.h:98