35 namespace experimental
41 auto k = arm_compute::support::cpp14::make_unique<NEActivationLayerKernel>();
42 k->configure(
input, output, activation_info);
43 _kernel = std::move(k);
52 struct NEActivationLayer::Impl
55 ITensor *
dst{
nullptr };
56 IRuntimeContext *ctx{
nullptr };
57 std::unique_ptr<experimental::NEActivationLayer> op{
nullptr };
77 _impl->dst = output ==
nullptr ?
input : output;
79 _impl->op = arm_compute::support::cpp14::make_unique<experimental::NEActivationLayer>();
80 _impl->op->configure(_impl->src->info(), _impl->dst->info(), activation_info);
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 NEActivationLayer.
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-2020 Arm Limited.
void run() override
Run the kernels contained in the function.
_Unique_if< T >::_Single_object make_unique(Args &&... args)
Construct a single object and return a unique pointer to it.
void configure(const ITensorInfo *input, ITensorInfo *output, const ActivationLayerInfo &activation_info)
Set the input and output tensor.
Basic function to run NEActivationLayerKernel.
~NEActivationLayer()
Destructor.
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 NEActivationLayerKernel.
NEActivationLayer(IRuntimeContext *ctx=nullptr)
Constructor.
~NEActivationLayer()
Destructor.
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.