18#include "kernels/Utils.h"
19#include "PALDequantize.h"
31 input()->element_type() == loco::DataType::U8 ||
32 input()->element_type() == loco::DataType::S16);
36 if (
input()->element_type() == loco::DataType::S16)
50 switch (
input()->element_type())
52 case loco::DataType::U8:
59 case loco::DataType::S8:
66 case loco::DataType::S16:
74 throw std::runtime_error(
"luci-intp Dequantize Unsupported type.");
void resize(const Shape &new_shape)
int32_t zero_point() const
void configure() override
Dequantize(const Tensor *input, Tensor *output)
const Tensor * input() const
void execute() const override
#define LUCI_INTERPRETER_CHECK(cond)
tflite::RuntimeShape getTensorShape(const Tensor *tensor)
T must_cast(loco::Node *node)