31 struct NEActivationLayer::Impl
33 const ITensor *
src{
nullptr };
34 ITensor *
dst{
nullptr };
35 IRuntimeContext *ctx{
nullptr };
36 std::unique_ptr<cpu::CpuActivation> op{
nullptr };
40 : _impl(
std::make_unique<Impl>())
51 _impl->dst = output ==
nullptr ?
input : output;
55 _impl->op = std::make_unique<cpu::CpuActivation>();
56 _impl->op->configure(_impl->src->info(), _impl->dst->info(), activation_info);
static Status validate(const ITensorInfo *input, const ITensorInfo *output, const ActivationLayerInfo &act_info)
[NEActivationLayer snippet]
Store the tensor's metadata.
Activation Layer Information class.
Interface for Neon tensor.
NEActivationLayer & operator=(const NEActivationLayer &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
SimpleTensor< float > src
Copyright (c) 2017-2021 Arm Limited.
void run() override
Run the kernels contained in the function.
Basic function to run cpu::kernels::CpuActivationKernel.
~NEActivationLayer()
Destructor.
NEActivationLayer(IRuntimeContext *ctx=nullptr)
Constructor.
static Status validate(const ITensorInfo *input, const ITensorInfo *output, const ActivationLayerInfo &act_info)
Static function to check if given info will lead to a valid configuration of CpuActivation.
void configure(ITensor *input, ITensor *output, ActivationLayerInfo activation_info)
[NEActivationLayer snippet]
#define ARM_COMPUTE_ERROR_ON_NULLPTR(...)
void add_tensor(int id, ITensor *tensor)
Add tensor to the pack.