25 tflchef::ModelRecipe *model_recipe)
const
27 const auto &inputs = *op->inputs();
29 const tflite::Tensor *tensor =
import->tensors()->Get(inputs[1]);
30 assert(tensor->type() == tflite::TensorType::TensorType_INT32);
31 const tflite::Buffer *buffer =
import->buffers()->Get(tensor->buffer());
32 auto vec = extract_buffer<int32_t>(buffer);
33 import->set_tensor_filler(inputs[1], vec);
38 tflchef::Operation *operation = ctx->
chefop;
39 const tflite::Operator *op = ctx->
tflop;
41 auto op_params = op->builtin_options_as_CumsumOptions();
42 assert(op_params !=
nullptr);
44 operation->set_type(
"CumSum");
45 auto op_options = operation->mutable_cumsum_options();
47 op_options->set_exclusive(op_params->exclusive());
48 op_options->set_reverse(op_params->reverse());
tflchef::Operation * chefop
const tflite::Operator * tflop