24 #ifndef ARM_COMPUTE_NEON_CROP_KERNEL_H 25 #define ARM_COMPUTE_NEON_CROP_KERNEL_H 40 const char *
name()
const override 42 return "NECropKernel";
104 uint32_t _crop_box_ind;
105 float _extrapolation_value;
107 std::array<uint32_t, 2> _rows_out_of_bounds;
109 std::array<uint32_t, 2> _cols_out_of_bounds;
const Window & window() const
The maximum window the kernel can be executed on.
void(const ITensor *, const ITensor *, float *, Coordinates, int32_t, int32_t, int32_t, bool, bool) InBoundsCropFunction
Function to use for in bounds crop for the particular tensor types passed to configure() ...
Common interface for all kernels implemented in C++.
Store the tensor's metadata.
void configure(const ITensor *input, const ITensor *crop_boxes, const ITensor *box_ind, ITensor *output, uint32_t crop_box_ind=0, float extrapolation_value=0)
Configure kernel.
Interface for Neon tensor.
Copyright (c) 2017-2021 Arm Limited.
void configure_output_shape()
Configure output tensor's shape as this can only be determined at runtime.
Interface for the kernel to perform tensor cropping.
void run(const Window &window, const ThreadInfo &info) override
Execute the kernel on the passed window.
static Status validate(const ITensorInfo *input, const ITensorInfo *crop_boxes, const ITensorInfo *box_ind, const ITensorInfo *output, uint32_t crop_box_ind=0, float extrapolation_value=0)
Static function to check if given info will lead to a valid configuration of CLStridedSliceKernel.
~NECropKernel()=default
Default destructor.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
Information about executing thread and CPU.
const char * name() const override
Name of the kernel.
Describe a multidimensional execution window.
NECropKernel()
Default constructor.
NECropKernel & operator=(const NECropKernel &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...