48 inline void bitwise_and(
const T *__restrict input1,
const T *__restrict input2, T *__restrict output)
51 const type val1 =
vloadq(static_cast<const T *>(input1));
52 const type val2 =
vloadq(static_cast<const T *>(input2));
54 vstore(static_cast<T *>(output),
vand(val1, val2));
59 : _input1(nullptr), _input2(nullptr), _output(nullptr)
97 output_access.set_valid_region(win, valid_region);
99 INEKernel::configure(win);
113 bitwise_and<uint8_t>(input1.
ptr(), input2.
ptr(), output.
ptr());
115 input1, input2, output);
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...
Window calculate_max_window(const ValidRegion &valid_region, const Steps &steps, bool skip_border, BorderSize border_size)
const Window & window() const
The maximum window the kernel can be executed on.
1 channel, 1 U8 per channel
uint8x16_t vloadq(const uint8_t *ptr)
const ValidRegion valid_region
decltype(strategy::transforms) typedef type
Interface for Neon tensor.
Copyright (c) 2017-2021 Arm Limited.
virtual ValidRegion valid_region() const =0
Valid region of the tensor.
void run(const Window &window, const ThreadInfo &info) override
Execute the kernel on the passed window.
bool update_window_and_padding(Window &win, Ts &&... patterns)
Update window and padding size for each of the access patterns.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
virtual const TensorShape & tensor_shape() const =0
Size for each dimension of the tensor.
#define ARM_COMPUTE_ERROR_ON_MISMATCHING_DATA_TYPES(...)
Class to describe a number of elements in each dimension.
Implementation of a row access pattern.
uint8x8_t vand(const uint8x8_t &a, const uint8x8_t &b)
#define ARM_COMPUTE_ERROR_ON_MISMATCHING_SHAPES(...)
NEBitwiseAndKernel()
Default constructor.
Create the appropriate Neon vector given its type and size in terms of bits.
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
bool set_shape_if_empty(ITensorInfo &info, const TensorShape &shape)
Set the shape to the specified value if the current assignment is empty.
constexpr uint8_t * ptr() const
Return a pointer to the current pixel.
ValidRegion intersect_valid_regions(const Ts &... regions)
Intersect multiple valid regions.
#define ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(k)
#define ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(t, c,...)
SimpleTensor< T > bitwise_and(const SimpleTensor< T > &src1, const SimpleTensor< T > &src2)
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
Information about executing thread and CPU.
void vstore(uint8_t *ptr, uint8x8_t val)
unsigned int num_elems_processed_per_iteration
#define ARM_COMPUTE_ERROR_ON_NULLPTR(...)
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...
Includes all wrapper headers at once.
Container for valid region of a window.
Iterator updated by execute_window_loop for each window element.
void configure(const ITensor *input1, const ITensor *input2, ITensor *output)
Initialise the kernel's inputs and output.
Describe a multidimensional execution window.
#define ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW(f, s)