ONE - On-device Neural Engine
|
#include <CLMemsetKernel.h>
Public Member Functions | |
CLMemsetKernel () | |
CLMemsetKernel (const CLMemsetKernel &)=delete | |
CLMemsetKernel & | operator= (const CLMemsetKernel &)=delete |
CLMemsetKernel (CLMemsetKernel &&)=default | |
CLMemsetKernel & | operator= (CLMemsetKernel &&)=default |
~CLMemsetKernel ()=default | |
void | configure (ICLTensor *tensor, const PixelValue &constant_value, Window *window=nullptr) |
void | configure (const CLCompileContext &compile_context, ICLTensor *tensor, const PixelValue &constant_value, Window *window=nullptr) |
void | run (const Window &window, cl::CommandQueue &queue) override |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *tensor, const PixelValue &constant_value, Window *window=nullptr) |
Interface for filling the planes of a tensor
Definition at line 52 of file CLMemsetKernel.h.
arm_compute::CLMemsetKernel::CLMemsetKernel | ( | ) |
Default constructor
Definition at line 52 of file CLMemsetKernel.cpp.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved
|
default |
Default destructor
References validate().
void arm_compute::CLMemsetKernel::configure | ( | const CLCompileContext & | compile_context, |
ICLTensor * | tensor, | ||
const PixelValue & | constant_value, | ||
Window * | window = nullptr |
||
) |
Initialise the kernel's tensor and filling value
[in] | compile_context | The compile context to be used. |
[in,out] | tensor | Input tensor to fill. Supported data types: All. |
[in] | constant_value | The value used to fill the planes of the tensor |
[in] | window | Window to be used in case setting only part of a tensor. Default is nullptr. |
Definition at line 59 of file CLMemsetKernel.cpp.
References arm_compute::CLKernelLibraryEx::create_kernel(), arm_compute::CLKernelLibraryEx::get(), and validate().
void arm_compute::CLMemsetKernel::configure | ( | ICLTensor * | tensor, |
const PixelValue & | constant_value, | ||
Window * | window = nullptr |
||
) |
Initialise the kernel's tensor and filling value
[in,out] | tensor | Input tensor to fill. Supported data types: All. |
[in] | constant_value | The value used to fill the planes of the tensor |
[in] | window | Window to be used in case setting only part of a tensor. Default is nullptr. |
Definition at line 54 of file CLMemsetKernel.cpp.
References configure().
Referenced by arm_compute::CLOneHot::configure(), and configure().
|
default |
Allow instances of this class to be moved
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
override |
Definition at line 117 of file CLMemsetKernel.cpp.
Referenced by package.infer.session::inference().
|
static |
Static function to check if given info will lead to a valid configuration of CLMemsetKernel
[in] | tensor | Source tensor info. Data types supported: All. |
[in] | constant_value | The value used to fill the planes of the tensor |
[in] | window | Window to be used in case setting only part of a tensor. Default is nullptr. |
Definition at line 105 of file CLMemsetKernel.cpp.
Referenced by configure(), and ~CLMemsetKernel().