18#ifndef __NNFW_CKER_LOGICAL_OR_H__
19#define __NNFW_CKER_LOGICAL_OR_H__
31 const Shape &unextended_input2_shape,
const T *input2_data,
32 const Shape &unextended_output_shape, T *output_data)
55 auto in1_val = input1_data[in1_idx];
56 auto in2_val = input2_data[in2_idx];
57 output_data[out_idx] = in1_val || in2_val;
71 for (
int t = 0; t < num_elements; t++)
73 output_data[t] = input1_data[t] || input2_data[t];
int32_t DimensionsCount() const
const luci_interpreter::RuntimeShape output_shape
int Offset(const Shape &shape, int i0, int i1, int i2, int i3)
void LogicalOrBroadcast(const Shape &unextended_input1_shape, const T *input1_data, const Shape &unextended_input2_shape, const T *input2_data, const Shape &unextended_output_shape, T *output_data)
void NdArrayDescsForElementwiseBroadcast(const Shape &input0_shape, const Shape &input1_shape, NdArrayDesc< N > *desc0_out, NdArrayDesc< N > *desc1_out)
void LogicalOrElementwise(const Shape &shape, const T *input1_data, const T *input2_data, T *output_data)
int SubscriptToIndex(const NdArrayDesc< 4 > &desc, int i0, int i1, int i2, int i3)