23.08
|
Go to the documentation of this file.
40 : _memory_group(std::move(memory_manager)), _norm_kernel(), _multiply_f(), _input_squared()
53 _memory_group.
manage(&_input_squared);
56 _norm_kernel = std::make_unique<NENormalizationLayerKernel>();
57 _norm_kernel->configure(
input, &_input_squared, output, norm_info);
void manage(IMemoryManageable *obj) override
Sets a object to be managed by the given memory group.
void init(const TensorAllocator &allocator, const Coordinates &coords, TensorInfo &sub_info)
Shares the same backing memory with another tensor allocator, while the tensor info might be differen...
static Status validate(const ITensorInfo *input, const ITensorInfo *input_squared, const ITensorInfo *output, NormalizationLayerInfo norm_info)
Static function to check if given info will lead to a valid configuration of NENormalizationLayerKern...
void run() override
Run the kernels contained in the function.
NENormalizationLayer(std::shared_ptr< IMemoryManager > memory_manager=nullptr)
Default constructor.
Interface for CPU tensor.
static Status validate(const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output, float scale, ConvertPolicy overflow_policy, RoundingPolicy rounding_policy, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Static function to check if given info will lead to a valid configuration of NEPixelWiseMultiplicatio...
#define ARM_COMPUTE_RETURN_ON_ERROR(status)
Checks if a status contains an error and returns it.
#define ARM_COMPUTE_ERROR_ON_NULLPTR(...)
void run() override
Run the kernels contained in the function.
TensorAllocator * allocator()
Return a pointer to the tensor's allocator.
static IScheduler & get()
Access the scheduler singleton.
void configure(const ITensor *input, ITensor *output, const NormalizationLayerInfo &norm_info)
Set the input and output tensors.
static constexpr size_t DimY
Alias for dimension 1 also known as Y dimension.
void configure(const ITensor *input1, const ITensor *input2, ITensor *output, float scale, ConvertPolicy overflow_policy, RoundingPolicy rounding_policy, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Initialise the kernel's inputs, output and convertion policy.
virtual void schedule(ICPPKernel *kernel, const Hints &hints)=0
Runs the kernel in the same thread as the caller synchronously.
Store the tensor's metadata.
Normalization Layer Information class.
~NENormalizationLayer()
Default destructor.
void allocate() override
Allocate size specified by TensorInfo of CPU memory.
Memory group resources scope handling class.
Copyright (c) 2017-2023 Arm Limited.
@ TO_ZERO
Truncates the least significant values that are lost in operations.
#define ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR(...)
Store the tensor's metadata.
#define ARM_COMPUTE_LOG_PARAMS(...)
static Status validate(const ITensorInfo *input, const ITensorInfo *output, const NormalizationLayerInfo &norm_info)
Static function to check if given info will lead to a valid configuration of NENormalizationLayer.
TensorInfo tensor_info
Associated tensor info.