18#include "kernels/Utils.h"
20#include <tensorflow/lite/kernels/internal/reference/comparisons.h>
37 if (
x()->element_type() == DataType::U8)
47 switch (
x()->element_type())
49 case DataType::FLOAT32:
65 throw std::runtime_error(
"luci-intp NotEqual Unsupported type.");
69void NotEqual::evalFloat()
const
91template <
typename T>
void NotEqual::evalInteger()
const
114void NotEqual::evalQuantized()
const
124 op_params.input1_multiplier = _x_multiplier;
127 op_params.input2_multiplier = _y_multiplier;
132 tflite::reference_ops::Broadcast4DSlowNotEqualWithScaling(
144void NotEqual::evalBool()
const
void resize(const Shape &new_shape)
const Shape & shape() const
int32_t zero_point() const
void configure() override
NotEqual(const Tensor *x, const Tensor *y, Tensor *output)
void execute() const override
#define LUCI_INTERPRETER_CHECK(cond)
Shape calculateShapeForBroadcast(const Shape &input1_shape, const Shape &input2_shape)
tflite::RuntimeShape getTensorShape(const Tensor *tensor)
void quantizeMultiplierSmallerThanOneExp(double double_multiplier, int32_t *quantized_multiplier, int *left_shift)
T must_cast(loco::Node *node)