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)
46 tflite::DequantizationParams op_params;
50 switch (
input()->element_type())
52 case loco::DataType::U8:
56 getTensorData<float>(
output()));
59 case loco::DataType::S8:
63 getTensorData<float>(
output()));
66 case loco::DataType::S16:
70 getTensorData<float>(
output()));
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)