45 inline void bitwise_xor_U8_U8_U8(
const uint8_t *__restrict input1,
const uint8_t *__restrict input2, uint8_t *__restrict output)
47 const uint8x16_t val1 = vld1q_u8(input1);
48 const uint8x16_t val2 = vld1q_u8(input2);
50 vst1q_u8(output, veorq_u8(val1, val2));
55 : _input1(nullptr), _input2(nullptr), _output(nullptr)
89 output_access.set_valid_region(win, valid_region);
91 INEKernel::configure(win);
105 bitwise_xor_U8_U8_U8(input1.
ptr(), input2.
ptr(), output.
ptr());
107 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
const ValidRegion valid_region
NEBitwiseXorKernel()
Default constructor.
Interface for Neon tensor.
Copyright (c) 2017-2021 Arm Limited.
virtual ValidRegion valid_region() const =0
Valid region of the tensor.
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.
#define ARM_COMPUTE_ERROR_ON_MISMATCHING_SHAPES(...)
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,...)
void run(const Window &window, const ThreadInfo &info) override
Execute the kernel on the passed window.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
Information about executing thread and CPU.
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...
Container for valid region of a window.
Iterator updated by execute_window_loop for each window element.
Describe a multidimensional execution window.
void configure(const ITensor *input1, const ITensor *input2, ITensor *output)
Initialise the kernel's input and output.
#define ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW(f, s)