18#ifndef __NNFW_CKER_FLOOR_DIV_H__
19#define __NNFW_CKER_FLOOR_DIV_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] = std::floor(
58 std::divides<double>()(
static_cast<double>(in1_val),
static_cast<double>(in2_val)));
72 for (
int t = 0; t < num_elements; t++)
74 output_data[t] = std::floor(std::divides<double>()(
static_cast<double>(input1_data[t]),
75 static_cast<double>(input2_data[t])));
int32_t DimensionsCount() const
const luci_interpreter::RuntimeShape output_shape
void FloorDivElementwise(const Shape &shape, const T *input1_data, const T *input2_data, T *output_data)
int Offset(const Shape &shape, int i0, int i1, int i2, int i3)
void FloorDivBroadcast(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)
int SubscriptToIndex(const NdArrayDesc< 4 > &desc, int i0, int i1, int i2, int i3)