24.02.1
|
Go to the documentation of this file.
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";
74 uint32_t crop_box_ind = 0,
75 float extrapolation_value = 0);
94 uint32_t crop_box_ind = 0,
95 float extrapolation_value = 0);
115 uint32_t _crop_box_ind;
116 float _extrapolation_value;
118 std::array<uint32_t, 2> _rows_out_of_bounds;
120 std::array<uint32_t, 2> _cols_out_of_bounds;
Interface for CPU tensor.
NECropKernel & operator=(const NECropKernel &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
void run(const Window &window, const ThreadInfo &info) override
Execute the kernel on the passed window.
Common interface for all kernels implemented in C++.
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.
const char * name() const override
Name of the kernel.
const Window & window() const
The maximum window the kernel can be executed on.
Information about executing thread and CPU.
void configure_output_shape()
Configure output tensor's shape as this can only be determined at runtime.
Describe a multidimensional execution window.
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()
Copyright (c) 2017-2024 Arm Limited.
Store the tensor's metadata.
~NECropKernel()=default
Default destructor.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
Interface for the kernel to perform tensor cropping.
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.
NECropKernel()
Default constructor.