24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_CPU_SCALE_H
25 #define ARM_COMPUTE_CPU_SCALE_H
68 bool _is_prepared{
false};
static Status validate(const ITensorInfo *src, const ITensorInfo *dst, const ScaleKernelInfo &info)
Static function to check if given info will lead to a valid configuration.
SimpleTensor< float > src
DataLayout
[DataLayout enum definition]
@ UNDEFINED
Borders are left undefined.
void prepare(ITensorPack &tensors) override
Prepare the function for executing.
void configure(ITensorInfo *src, ITensorInfo *dst, const ScaleKernelInfo &info)
Initialize the function's source, destination, interpolation type and border_mode.
Basic interface for functions which have a single async CPU kernel.
Copyright (c) 2017-2024 Arm Limited.
void run(ITensorPack &tensors) override
Run the kernels contained in the function.
@ NEAREST_NEIGHBOR
Output values are defined to match the source pixel whose center is nearest to the sample position.
@ UNKNOWN
Unknown data layout.
Store the tensor's metadata.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
Basic function to compute Scale.