24 #ifndef __LOGISTIC_LAYER_BACKWARD_H__
25 #define __LOGISTIC_LAYER_BACKWARD_H__
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/logistic/logistic_layer_types.h"
32 #include "algorithms/neural_networks/layers/logistic/logistic_layer_backward_types.h"
38 namespace neural_networks
71 template<
typename algorithmFPType, Method method, CpuType cpu>
72 class BatchContainer :
public AnalysisContainerIface<batch>
81 DAAL_DEPRECATED BatchContainer(daal::services::Environment::env *daalEnv);
86 DAAL_DEPRECATED ~BatchContainer();
93 DAAL_DEPRECATED services::Status compute() DAAL_C11_OVERRIDE;
115 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
116 class Batch :
public layers::backward::LayerIfaceImpl
119 typedef layers::backward::LayerIfaceImpl super;
121 typedef algorithms::neural_networks::layers::logistic::backward::Input InputType;
122 typedef algorithms::neural_networks::layers::logistic::Parameter ParameterType;
123 typedef algorithms::neural_networks::layers::logistic::backward::Result ResultType;
125 ParameterType ¶meter;
132 DAAL_DEPRECATED Batch() : parameter(_defaultParameter)
143 DAAL_DEPRECATED Batch(ParameterType& parameter) : parameter(parameter), _defaultParameter(parameter)
155 Batch(
const Batch<algorithmFPType, method> &other) : super(other),
156 _defaultParameter(other.parameter), parameter(_defaultParameter), input(other.input)
166 DAAL_DEPRECATED_VIRTUAL
virtual int getMethod() const DAAL_C11_OVERRIDE {
return(
int) method; }
173 DAAL_DEPRECATED_VIRTUAL
virtual InputType *getLayerInput() DAAL_C11_OVERRIDE {
return &input; }
180 DAAL_DEPRECATED_VIRTUAL
virtual ParameterType *getLayerParameter() DAAL_C11_OVERRIDE {
return ¶meter; };
187 DAAL_DEPRECATED layers::backward::ResultPtr getLayerResult() DAAL_C11_OVERRIDE
197 DAAL_DEPRECATED ResultPtr getResult()
209 DAAL_DEPRECATED services::Status setResult(
const ResultPtr& result)
211 DAAL_CHECK(result, services::ErrorNullResult)
213 _res = _result.get();
214 return services::Status();
223 DAAL_DEPRECATED services::SharedPtr<Batch<algorithmFPType, method> > clone()
const
225 return services::SharedPtr<Batch<algorithmFPType, method> >(cloneImpl());
234 DAAL_DEPRECATED_VIRTUAL
virtual services::Status allocateResult() DAAL_C11_OVERRIDE
236 services::Status s = this->_result->template allocate<algorithmFPType>(&(this->input), ¶meter, (
int) method);
237 this->_res = this->_result.get();
245 DAAL_DEPRECATED_VIRTUAL
virtual Batch<algorithmFPType, method> *cloneImpl() const DAAL_C11_OVERRIDE
247 return new Batch<algorithmFPType, method>(*this);
255 Analysis<batch>::_ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, method)(&_env);
258 _result.reset(
new ResultType());
263 ParameterType _defaultParameter;
267 using interface1::BatchContainer;
268 using interface1::Batch;
daal::algorithms::neural_networks::layers::logistic::backward::interface1::Batch::getLayerParameter
virtual DAAL_DEPRECATED_VIRTUAL ParameterType * getLayerParameter() DAAL_C11_OVERRIDE
Definition: logistic_layer_backward.h:180
daal::algorithms::neural_networks::layers::logistic::backward::interface1::Batch::getLayerResult
DAAL_DEPRECATED layers::backward::ResultPtr getLayerResult() DAAL_C11_OVERRIDE
Definition: logistic_layer_backward.h:187
daal::algorithms::neural_networks::layers::logistic::backward::interface1::Batch::clone
DAAL_DEPRECATED services::SharedPtr< Batch< algorithmFPType, method > > clone() const
Definition: logistic_layer_backward.h:223
daal::batch
Definition: daal_defines.h:112
daal::algorithms::neural_networks::layers::logistic::backward::interface1::Batch::Batch
DAAL_DEPRECATED Batch(ParameterType ¶meter)
Definition: logistic_layer_backward.h:143
daal::algorithms::neural_networks::layers::logistic::backward::interface1::Batch::setResult
DAAL_DEPRECATED services::Status setResult(const ResultPtr &result)
Definition: logistic_layer_backward.h:209
daal::algorithms::neural_networks::layers::logistic::backward::interface1::Batch::getMethod
virtual DAAL_DEPRECATED_VIRTUAL int getMethod() const DAAL_C11_OVERRIDE
Definition: logistic_layer_backward.h:166
daal::algorithms::neural_networks::layers::logistic::backward::interface1::Batch::Batch
Batch(const Batch< algorithmFPType, method > &other)
Definition: logistic_layer_backward.h:155
daal::algorithms::neural_networks::layers::logistic::backward::interface1::Batch::allocateResult
virtual DAAL_DEPRECATED_VIRTUAL services::Status allocateResult() DAAL_C11_OVERRIDE
Definition: logistic_layer_backward.h:234
daal::services::ErrorNullResult
Definition: error_indexes.h:98
daal::algorithms::AnalysisContainerIface
Abstract interface class that provides virtual methods to access and run implementations of the analy...
Definition: analysis.h:55
daal::algorithms::neural_networks::layers::logistic::backward::interface1::BatchContainer::~BatchContainer
DAAL_DEPRECATED ~BatchContainer()
daal::algorithms::neural_networks::layers::logistic::backward::interface1::BatchContainer::compute
DAAL_DEPRECATED services::Status compute() DAAL_C11_OVERRIDE
daal::algorithms::neural_networks::layers::logistic::backward::interface1::Batch::Batch
DAAL_DEPRECATED Batch()
Definition: logistic_layer_backward.h:132
daal::algorithms::neural_networks::layers::logistic::backward::interface1::BatchContainer
Provides methods to run implementations of the of the backward logistic layer This class is associate...
Definition: logistic_layer_backward.h:72
daal::algorithms::neural_networks::layers::logistic::backward::interface1::Batch::input
InputType input
Definition: logistic_layer_backward.h:126
daal::algorithms::neural_networks::layers::logistic::backward::interface1::Batch::parameter
ParameterType & parameter
Definition: logistic_layer_backward.h:125
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:70
daal::algorithms::neural_networks::layers::logistic::backward::interface1::Batch::getLayerInput
virtual DAAL_DEPRECATED_VIRTUAL InputType * getLayerInput() DAAL_C11_OVERRIDE
Definition: logistic_layer_backward.h:173
daal::algorithms::neural_networks::layers::logistic::backward::interface1::Batch::getResult
DAAL_DEPRECATED ResultPtr getResult()
Definition: logistic_layer_backward.h:197
daal::algorithms::neural_networks::layers::logistic::backward::interface1::BatchContainer::BatchContainer
DAAL_DEPRECATED BatchContainer(daal::services::Environment::env *daalEnv)
daal::algorithms::neural_networks::layers::logistic::backward::interface1::Batch
Computes the results of the backward logistic layer in the batch processing mode. ...
Definition: logistic_layer_backward.h:116