48 assert(cur_op->inputs()->size() == 2);
49 const auto input_index = cur_op->inputs()->operator[](0);
50 const auto size_index = cur_op->inputs()->operator[](1);
51 const auto output_index = cur_op->outputs()->operator[](0);
53 assert(input_index != -1);
54 assert(size_index != -1);
55 assert(output_index != -1);
64 assert(Tensor::element_type(
size) == DataType::S32);
67 const auto *params = cur_op->builtin_options_as_ResizeBilinearOptions();
68 if (params->half_pixel_centers() && params->align_corners())
69 assert(
false &&
"If half_pixel_centers is True, align_corners must be False.");
75 assert(cur_op->inputs()->size() == 2);
76 const auto input_index = cur_op->inputs()->operator[](0);
77 const auto size_index = cur_op->inputs()->operator[](1);
78 const auto output_index = cur_op->outputs()->operator[](0);
80 assert(input_index != -1);
81 assert(size_index != -1);
82 assert(output_index != -1);
92 assert(input_data !=
nullptr);
93 assert(size_data !=
nullptr);
94 assert(output_data !=
nullptr);
97 const auto *op_params = cur_op->builtin_options_as_ResizeBilinearOptions();
99 switch (Tensor::element_type(output))
101 case DataType::FLOAT32:
102 luci_interpreter_pal::ResizeBilinear(
108 luci_interpreter_pal::ResizeBilinear(
114 assert(
false &&
"Unsupported type.");