23.11
|
Go to the documentation of this file.
49 inline void bitwise_and(
const T *__restrict input1,
const T *__restrict input2, T *__restrict output)
52 const type val1 =
vloadq(
static_cast<const T *
>(input1));
53 const type val2 =
vloadq(
static_cast<const T *
>(input2));
55 vstore(
static_cast<T *
>(output),
vand(val1, val2));
Class to describe a number of elements in each dimension.
im2col_func configure(src_target.info(), dst_target.info(), spatial_kernel, conv_info, has_bias)
decltype(strategy::transforms) typedef type
virtual const TensorShape & tensor_shape() const =0
Size for each dimension of the tensor.
#define ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(t, c,...)
Window calculate_max_window(const ValidRegion &valid_region, const Steps &steps, bool skip_border, BorderSize border_size)
#define ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(k)
Implementation of a row access pattern.
bool update_window_and_padding(Window &win, Ts &&...patterns)
Update window and padding size for each of the access patterns.
Interface for CPU tensor.
uint8x16_t vloadq(const uint8_t *ptr)
Includes all wrapper headers at once.
Create the appropriate SIMD vector given its type and size in terms of bits.
#define ARM_COMPUTE_ERROR_ON_NULLPTR(...)
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
constexpr uint8_t * ptr() const
Return a pointer to the current pixel.
void execute_window_loop(const Window &w, L &&lambda_function, Ts &&...iterators)
Iterate through the passed window, automatically adjusting the iterators and calling the lambda_funct...
Iterator updated by execute_window_loop for each window element.
@ U8
unsigned 8-bit number
#define ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW(f, s)
uint8x8_t vand(const uint8x8_t &a, const uint8x8_t &b)
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
@ U8
1 channel, 1 U8 per channel
SimpleTensor< T > bitwise_and(const SimpleTensor< T > &src1, const SimpleTensor< T > &src2)
void configure(const ITensor *input1, const ITensor *input2, ITensor *output)
Initialise the kernel's inputs and output.
const Window & window() const
The maximum window the kernel can be executed on.
Information about executing thread and CPU.
bool set_shape_if_empty(ITensorInfo &info, const TensorShape &shape)
Set the shape to the specified value if the current assignment is empty.
void vstore(uint8_t *ptr, uint8x8_t val)
Describe a multidimensional execution window.
void run(const Window &window, const ThreadInfo &info) override
Execute the kernel on the passed window.
Copyright (c) 2017-2023 Arm Limited.
NEBitwiseAndKernel()
Default constructor.
bool set_format_if_unknown(ITensorInfo &info, Format format)
Set the format, data type and number of channels to the specified value if the current data type is u...
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
#define ARM_COMPUTE_ERROR_ON_MISMATCHING_DATA_TYPES(...)
unsigned int num_elems_processed_per_iteration
#define ARM_COMPUTE_ERROR_ON_MISMATCHING_SHAPES(...)