25 tflchef::ModelRecipe *model_recipe)
const
28 const auto &inputs = *op->inputs();
30 const tflite::Tensor *tensor =
import->tensors()->Get(inputs[1]);
31 assert(tensor->type() == tflite::TensorType::TensorType_INT32);
32 const tflite::Buffer *buffer =
import->buffers()->Get(tensor->buffer());
34 if (buffer && buffer->data())
36 auto vec = extract_buffer<int32_t>(buffer);
37 import->set_tensor_filler(inputs[1], vec);
43 tflchef::Operation *operation = ctx->
chefop;
44 const tflite::Operator *op = ctx->
tflop;
46 auto op_params = op->builtin_options_as_ResizeBilinearOptions();
47 assert(op_params !=
nullptr);
49 operation->set_type(
"ResizeBilinear");
51 auto op_options = operation->mutable_resize_bilinear_options();
53 op_options->set_align_corners(op_params->align_corners());
54 op_options->set_half_pixel_centers(op_params->half_pixel_centers());
tflchef::Operation * chefop
const tflite::Operator * tflop