24.02
|
Go to the documentation of this file.
38 : _memory_group(std::move(memory_manager)),
39 _normalization_kernel(),
58 _normalization_kernel = std::make_unique<NEInstanceNormalizationLayerKernel>();
62 _memory_group.
manage(&_permuted_input);
63 _memory_group.
manage(&_permuted_output);
69 _normalization_kernel->configure(&_permuted_input, &_permuted_output, kernel_descriptor);
78 _normalization_kernel->configure(
input, output, kernel_descriptor);
105 _permute_output.
run();
@ NCHW
Num samples, channels, height, width.
static Status validate(const ITensorInfo *input, const ITensorInfo *output, float gamma=1.0f, float beta=0.0f, float epsilon=1e-12f)
Static function to check if given info will lead to a valid configuration of NEInstanceNormalizationL...
NEInstanceNormalizationLayer(std::shared_ptr< IMemoryManager > memory_manager=nullptr)
Constructor.
void manage(IMemoryManageable *obj) override
Sets a object to be managed by the given memory group.
DataLayout
[DataLayout enum definition]
Interface for CPU tensor.
static Status validate(const ITensorInfo *input, const ITensorInfo *output, const InstanceNormalizationLayerKernelInfo &info)
Static function to check if given info will lead to a valid configuration of NEInstanceNormalizationL...
constexpr auto data_layout
Strides PermutationVector
Permutation vector.
void run() override
Run the kernels contained in the function.
TensorAllocator * allocator()
Return a pointer to the tensor's allocator.
void configure(ITensor *input, ITensor *output, float gamma=1.0f, float beta=0.0f, float epsilon=1e-12f)
Set the input and output tensors.
static IScheduler & get()
Access the scheduler singleton.
void configure(const ITensor *input, ITensor *output, const PermutationVector &perm)
Configure the permute function.
ITensorInfo * info() const override
Interface to be implemented by the child class to return the tensor's metadata.
void run() override
Run the kernels contained in the function.
virtual void schedule(ICPPKernel *kernel, const Hints &hints)=0
Runs the kernel in the same thread as the caller synchronously.
virtual std::unique_ptr< T > clone() const =0
Provide a clone of the current object of class T.
void allocate() override
Allocate size specified by TensorInfo of CPU memory.
Memory group resources scope handling class.
Copyright (c) 2017-2024 Arm Limited.
static constexpr size_t DimZ
Alias for dimension 2 also known as Z dimension.
Store the tensor's metadata.
virtual ITensorInfo & set_data_layout(const DataLayout &data_layout)=0
Set the data layout of the tensor.
~NEInstanceNormalizationLayer()
Default destructor.
#define ARM_COMPUTE_LOG_PARAMS(...)