25 tflchef::ModelRecipe *model_recipe)
const
28 const auto &inputs = *op->inputs();
30 const tflite::Tensor *dim_tensor =
import->tensors()->Get(inputs[1]);
31 assert(dim_tensor->type() == tflite::TensorType::TensorType_INT32);
32 const tflite::Buffer *buffer =
import->buffers()->Get(dim_tensor->buffer());
33 auto vec = extract_buffer<int32_t>(buffer);
34 import->set_tensor_filler(inputs[1], vec);
39 tflchef::Operation *operation = ctx->
chefop;
40 const tflite::Operator *op = ctx->
tflop;
42 auto op_params = op->builtin_options_as_ArgMaxOptions();
43 assert(op_params !=
nullptr);
45 operation->set_type(
"ArgMax");
47 auto op_options = operation->mutable_argmax_options();
tflchef::Operation * chefop
const tflite::Operator * tflop