24.02
|
Go to the documentation of this file.
34 namespace experimental
43 int32_t shrink_axis_mask)
47 auto k = std::make_unique<NEStridedSliceKernel>();
48 k->configure(
input, output, starts, ends, strides, begin_mask, end_mask, shrink_axis_mask);
49 _kernel = std::move(k);
59 int32_t shrink_axis_mask)
65 struct NEStridedSlice::Impl
68 ITensor *
dst{
nullptr};
69 std::unique_ptr<experimental::NEStridedSlice> op{
nullptr};
86 int32_t shrink_axis_mask)
90 _impl->op = std::make_unique<experimental::NEStridedSlice>();
91 _impl->op->configure(
input->info(), output->
info(), starts, ends, strides, begin_mask, end_mask, shrink_axis_mask);
109 int32_t shrink_axis_mask)
SimpleTensor< float > src
Basic function to run NEStridedSliceKernel.
static Status validate(const ITensorInfo *input, const ITensorInfo *output, const Coordinates &starts, const Coordinates &ends, const BiStrides &strides, int32_t begin_mask=0, int32_t end_mask=0, int32_t shrink_axis_mask=0)
Static function to check if given info will lead to a valid configuration of NEStridedSlice.
static Status validate(const ITensorInfo *input, const ITensorInfo *output, const Coordinates &starts, const Coordinates &ends, const BiStrides &strides, int32_t begin_mask, int32_t end_mask, int32_t shrink_axis_mask)
Static function to check if given info will lead to a valid configuration of NEStridedSliceKernel.
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.
NEStridedSlice()
Default Constructor.
static Status validate(const ITensorInfo *input, const ITensorInfo *output, const Coordinates &starts, const Coordinates &ends, const BiStrides &strides, int32_t begin_mask=0, int32_t end_mask=0, int32_t shrink_axis_mask=0)
Static function to check if given info will lead to a valid configuration of NEStridedSlice.
void configure(const ITensorInfo *input, ITensorInfo *output, const Coordinates &starts, const Coordinates &ends, const BiStrides &strides, int32_t begin_mask=0, int32_t end_mask=0, int32_t shrink_axis_mask=0)
Configure kernel.
~NEStridedSlice()
Default Destructor.
NEStridedSlice & operator=(const NEStridedSlice &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
Copyright (c) 2017-2024 Arm Limited.
void run() override
Run the kernels contained in the function.
Store the tensor's metadata.
void configure(const ITensor *input, ITensor *output, const Coordinates &starts, const Coordinates &ends, const BiStrides &strides, int32_t begin_mask=0, int32_t end_mask=0, int32_t shrink_axis_mask=0)
Configure kernel.
#define ARM_COMPUTE_LOG_PARAMS(...)