24.02
|
Go to the documentation of this file.
34 struct NEPReluLayer::Impl
36 const ITensor *src_0{
nullptr};
37 const ITensor *src_1{
nullptr};
38 ITensor *
dst{
nullptr};
39 std::unique_ptr<OperatorType> op{
nullptr};
54 _impl->op = std::make_unique<OperatorType>();
55 _impl->op->configure(
input->info(), alpha->
info(), output->
info());
void run() override
Run the kernels contained in the function.
void configure(const ITensor *input, const ITensor *alpha, ITensor *output)
Set the input and output tensor.
NEPReluLayer & operator=(const NEPReluLayer &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
Interface for CPU tensor.
void add_tensor(int id, ITensor *tensor)
Add tensor to the pack.
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
opencl::ClGemm OperatorType
static Status validate(const ITensorInfo *input, const ITensorInfo *alpha, const ITensorInfo *output)
Static function to check if given info will lead to a valid configuration of NEPReluLayer.
Copyright (c) 2017-2024 Arm Limited.
~NEPReluLayer()
Default Destructor.
Store the tensor's metadata.
CpuElementwiseArithmetic< ArithmeticOperation::PRELU > CpuPRelu
Class to run cpu::kernels::CpuArithmeticKernel except for PRelu operation.
Basic function to run cpu::kernels::CpuArithmeticKernel for PRELU.
static Status validate(const ITensorInfo *a, const ITensorInfo *b, const ITensorInfo *c, const ITensorInfo *output, float alpha, float beta, const GEMMInfo &gemm_info)
Static function to check if given info will lead to a valid configuration.
NEPReluLayer()
Default Constructor.