51 #include "algorithms/algorithm.h"
52 #include "data_management/data/numeric_table.h"
53 #include "services/daal_defines.h"
54 #include "algorithms/math/relu_types.h"
75 template<
typename algorithmFPType, Method method, CpuType cpu>
76 class DAAL_EXPORT BatchContainer :
public daal::algorithms::AnalysisContainerIface<batch>
84 BatchContainer(daal::services::Environment::env *daalEnv);
92 virtual services::Status compute() DAAL_C11_OVERRIDE;
109 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
110 class DAAL_EXPORT Batch :
public daal::algorithms::Analysis<batch>
123 Batch(
const Batch<algorithmFPType, method> &other) : input(other.input)
132 virtual int getMethod() const DAAL_C11_OVERRIDE {
return(
int) method; }
138 ResultPtr getResult()
149 services::Status setResult(
const ResultPtr &result)
151 DAAL_CHECK(result, services::ErrorNullResult)
153 _res = _result.get();
154 return services::Status();
164 services::SharedPtr<Batch<algorithmFPType, method> > clone()
const
166 return services::SharedPtr<Batch<algorithmFPType, method> >(cloneImpl());
170 virtual Batch<algorithmFPType, method> *cloneImpl() const DAAL_C11_OVERRIDE
172 return new Batch<algorithmFPType, method>(*this);
175 virtual services::Status allocateResult() DAAL_C11_OVERRIDE
177 _result.reset(
new Result());
178 services::Status s = _result->allocate<algorithmFPType>(&input, NULL, (int) method);
179 _res = _result.get();
185 Analysis<batch>::_ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, method)(&_env);
193 using interface1::BatchContainer;
194 using interface1::Batch;
daal
Definition: algorithm_base_common.h:57
daal::algorithms::AnalysisContainerIface
Abstract interface class that provides virtual methods to access and run implementations of the analy...
Definition: analysis.h:79
daal::algorithms::math::relu::interface1::Batch::input
Input input
Definition: relu.h:157
daal::algorithms::math::relu::interface1::Batch::getResult
ResultPtr getResult()
Definition: relu.h:138
daal::algorithms::math::relu::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: relu.h:132
daal::algorithms::math::relu::interface1::Batch::Batch
Batch(const Batch< algorithmFPType, method > &other)
Definition: relu.h:123
daal::algorithms::math::relu::interface1::BatchContainer
Class containing methods for the rectified linear function computing using algorithmFPType precision ...
Definition: relu.h:76
daal::batch
Definition: daal_defines.h:131
daal::algorithms::math::relu::interface1::Batch::setResult
services::Status setResult(const ResultPtr &result)
Definition: relu.h:149
daal::algorithms::math::relu::interface1::Batch::Batch
Batch()
Definition: relu.h:114
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:94
daal::algorithms::math::relu::interface1::Batch
Computes the rectified linear function in the batch processing mode.
Definition: relu.h:110
daal::algorithms::math::relu::interface1::Batch::clone
services::SharedPtr< Batch< algorithmFPType, method > > clone() const
Definition: relu.h:164
daal::services::ErrorNullResult
Definition: error_indexes.h:122