23.11
|
Go to the documentation of this file.
32 struct NEActivationLayer::Impl
34 const ITensor *
src{
nullptr};
35 ITensor *
dst{
nullptr};
36 IRuntimeContext *ctx{
nullptr};
37 std::unique_ptr<cpu::CpuActivation> op{
nullptr};
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);
SimpleTensor< float > src
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.
Interface for CPU tensor.
void add_tensor(int id, ITensor *tensor)
Add tensor to the pack.
static Status validate(const ITensorInfo *input, const ITensorInfo *output, const ActivationLayerInfo &act_info)
[NEActivationLayer snippet]
Activation Layer Information class.
#define ARM_COMPUTE_ERROR_ON_NULLPTR(...)
void configure(ITensor *input, ITensor *output, ActivationLayerInfo activation_info)
[NEActivationLayer snippet]
Basic function to run cpu::kernels::CpuActivationKernel.
NEActivationLayer & operator=(const NEActivationLayer &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
Copyright (c) 2017-2023 Arm Limited.
Store the tensor's metadata.
~NEActivationLayer()
Destructor.
void run() override
Run the kernels contained in the function.