24.02.1
|
Basic function to run kernels::ClCropKernel. More...
#include <ClCrop.h>
Public Member Functions | |
void | configure (const CLCompileContext &compile_context, const ITensorInfo *src, ITensorInfo *dst, Coordinates2D start, Coordinates2D end, uint32_t batch_index, float extrapolation_value=0, Window *dst_window=nullptr) |
Initialise the function's source and destination. More... | |
Public Member Functions inherited from ICLOperator | |
ICLOperator (IRuntimeContext *ctx=nullptr) | |
Constructor. More... | |
ICLOperator (const ICLOperator &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLOperator (ICLOperator &&)=default | |
Default move constructor. More... | |
ICLOperator & | operator= (const ICLOperator &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLOperator & | operator= (ICLOperator &&)=default |
Default move assignment operator. More... | |
void | run (ITensorPack &tensors) override |
Run the kernels contained in the function. 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... | |
Public Member Functions inherited from IOperator | |
virtual | ~IOperator ()=default |
Destructor. More... | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *src, const ITensorInfo *dst, Coordinates2D start, Coordinates2D end, uint32_t batch_index, float extrapolation_value=0, Window *dst_window=nullptr) |
Static function to check if given info will lead to a valid configuration. More... | |
Basic function to run kernels::ClCropKernel.
void configure | ( | const CLCompileContext & | compile_context, |
const ITensorInfo * | src, | ||
ITensorInfo * | dst, | ||
Coordinates2D | start, | ||
Coordinates2D | end, | ||
uint32_t | batch_index, | ||
float | extrapolation_value = 0 , |
||
Window * | dst_window = nullptr |
||
) |
Initialise the function's source and destination.
[in] | compile_context | The compile context to be used. |
[in] | src | Source tensor info. Data type supported: All. Data layouts supported: NHWC. |
[out] | dst | Destination tensor info. Data type supported: F32 |
[in] | start | Coordinates of where to start cropping the image. |
[in] | end | Coordinates of where to end cropping the image. |
[in] | batch_index | Fourth dimension index of the 3D image to crop in src . |
[in] | extrapolation_value | Value to be used for values outside of the image. Default is 0. |
[in] | dst_window | Output window to be used in case cropped image is being copied into a tensor. Default is nullptr. |
Definition at line 34 of file ClCrop.cpp.
References ARM_COMPUTE_LOG_PARAMS, arm_compute::test::validation::dst, arm_compute::mlgo::parser::end(), and arm_compute::test::validation::src.
|
static |
Static function to check if given info will lead to a valid configuration.
Similar to ClCrop::configure()
Definition at line 49 of file ClCrop.cpp.
References arm_compute::test::validation::dst, arm_compute::mlgo::parser::end(), arm_compute::test::validation::src, and ClCropKernel::validate().
Referenced by CLCrop::validate().