20#include "kernels/Utils.h"
22#include "PALResizeBilinear.h"
40 if (
params().half_pixel_centers &&
params().align_corners)
41 throw std::runtime_error(
"If half_pixel_centers is True, align_corners must be False.");
56 switch (
output()->element_type())
58 case DataType::FLOAT32:
59 luci_interpreter_pal::ResizeBilinear(
64 luci_interpreter_pal::ResizeBilinear(
69 throw std::runtime_error(
"luci-intp ResizeBilinear Unsupported type.");
const ResizeBilinearParams & params() const
void resize(const Shape &new_shape)
const Shape & shape() const
const Tensor * input() const
void execute() const override
void configure() override
ResizeBilinear(const Tensor *input, const Tensor *shape, Tensor *output, const ResizeBilinearParams ¶ms)
const Tensor * size() const
#define LUCI_INTERPRETER_CHECK(cond)
const luci_interpreter::RuntimeShape output_shape
tflite::RuntimeShape getTensorShape(const Tensor *tensor)
T must_cast(loco::Node *node)