27 #include "algorithms/algorithm.h"
28 #include "data_management/data/numeric_table.h"
29 #include "services/daal_defines.h"
30 #include "algorithms/math/relu_types.h"
52 template<
typename algorithmFPType, Method method, CpuType cpu>
53 class BatchContainer :
public daal::algorithms::AnalysisContainerIface<batch>
62 BatchContainer(daal::services::Environment::env *daalEnv);
74 virtual services::Status compute() DAAL_C11_OVERRIDE;
93 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
94 class DAAL_EXPORT Batch :
public daal::algorithms::Analysis<batch>
97 typedef algorithms::math::relu::Input InputType;
98 typedef algorithms::math::relu::Result ResultType;
114 Batch(
const Batch<algorithmFPType, method> &other) : input(other.input)
123 virtual int getMethod() const DAAL_C11_OVERRIDE {
return(
int) method; }
129 ResultPtr getResult()
140 services::Status setResult(
const ResultPtr &result)
142 DAAL_CHECK(result, services::ErrorNullResult)
144 _res = _result.get();
145 return services::Status();
155 services::SharedPtr<Batch<algorithmFPType, method> > clone()
const
157 return services::SharedPtr<Batch<algorithmFPType, method> >(cloneImpl());
161 virtual Batch<algorithmFPType, method> *cloneImpl() const DAAL_C11_OVERRIDE
163 return new Batch<algorithmFPType, method>(*this);
166 virtual services::Status allocateResult() DAAL_C11_OVERRIDE
168 _result.reset(
new ResultType());
169 services::Status s = _result->allocate<algorithmFPType>(&input, NULL, (int) method);
170 _res = _result.get();
176 Analysis<batch>::_ac =
new __DAAL_ALGORITHM_CONTAINER(batch, BatchContainer, algorithmFPType, method)(&_env);
184 using interface1::BatchContainer;
185 using interface1::Batch;
daal::algorithms::math::relu::interface1::BatchContainer::~BatchContainer
~BatchContainer()
daal::algorithms::math::relu::interface1::BatchContainer::BatchContainer
BatchContainer(daal::services::Environment::env *daalEnv)
daal::algorithms::math::relu::interface1::Batch::clone
services::SharedPtr< Batch< algorithmFPType, method > > clone() const
Definition: relu.h:155
daal::algorithms::math::relu::interface1::Batch::setResult
services::Status setResult(const ResultPtr &result)
Definition: relu.h:140
daal::batch
Definition: daal_defines.h:112
daal::algorithms::math::relu::interface1::Batch::getResult
ResultPtr getResult()
Definition: relu.h:129
daal::algorithms::math::relu::interface1::Batch::Batch
Batch(const Batch< algorithmFPType, method > &other)
Definition: relu.h:114
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::math::relu::interface1::Batch
Computes the rectified linear function in the batch processing mode.
Definition: relu.h:94
daal::algorithms::math::relu::interface1::BatchContainer
Class containing methods for the rectified linear function computing using algorithmFPType precision ...
Definition: relu.h:53
daal::algorithms::math::relu::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: relu.h:123
daal::algorithms::math::relu::interface1::Batch::Batch
Batch()
Definition: relu.h:104
daal::algorithms::math::relu::interface1::Batch::input
InputType input
Definition: relu.h:148
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:70
daal::algorithms::math::relu::interface1::BatchContainer::compute
virtual services::Status compute() DAAL_C11_OVERRIDE