23.11
|
Basic function to run kernels::CpuDequantizeKernel that dequantizes an input tensor. More...
#include <CpuDequantize.h>
Public Member Functions | |
void | configure (const ITensorInfo *src, ITensorInfo *dst) |
Configure the kernel. More... | |
void | run (ITensorPack &tensors) override |
Run the kernels contained in the function. More... | |
![]() | |
INEOperator (IRuntimeContext *ctx=nullptr) | |
Constructor. More... | |
INEOperator (const INEOperator &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
INEOperator (INEOperator &&)=default | |
Default move constructor. More... | |
INEOperator & | operator= (const INEOperator &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
INEOperator & | operator= (INEOperator &&)=default |
Default move assignment operator. More... | |
~INEOperator () | |
Default destructor. More... | |
void | prepare (ITensorPack &constants) override |
Prepare the function for executing. More... | |
MemoryRequirements | workspace () const override |
Return the memory requirements required by the workspace. More... | |
![]() | |
virtual | ~IOperator ()=default |
Destructor. More... | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *src, const ITensorInfo *dst) |
Static function to check if given info will lead to a valid configuration. More... | |
Basic function to run kernels::CpuDequantizeKernel that dequantizes an input tensor.
Definition at line 34 of file CpuDequantize.h.
void configure | ( | const ITensorInfo * | src, |
ITensorInfo * | dst | ||
) |
Configure the kernel.
[in] | src | Source tensor info. Data types supported: QASYMM8/QASYMM8_SIGNED/QSYMM8_PER_CHANNEL/QSYMM8/QSYMM16. |
[out] | dst | Destination tensor info with the same dimensions of input. Data type supported: F16/F32. |
Definition at line 37 of file CpuDequantize.cpp.
References ARM_COMPUTE_LOG_PARAMS, arm_compute::test::validation::dst, and arm_compute::test::validation::src.
Referenced by CpuAddMulAdd::configure().
|
overridevirtual |
Run the kernels contained in the function.
[in] | tensors | Vector that contains the tensors to operate on. |
Reimplemented from INEOperator.
Definition at line 50 of file CpuDequantize.cpp.
References ARM_COMPUTE_ERROR_ON_MSG, Window::DimY, ITensorPack::empty(), Scheduler::get(), INEOperator::prepare(), and IScheduler::schedule_op().
Referenced by CpuAddMulAdd::run().
|
static |
Static function to check if given info will lead to a valid configuration.
Similar to CpuDequantize::configure()
Definition at line 45 of file CpuDequantize.cpp.
References arm_compute::test::validation::dst, arm_compute::test::validation::src, and CpuDequantizeKernel::validate().
Referenced by CpuAddMulAdd::validate(), and NEDequantizationLayer::validate().