25 tflchef::ModelRecipe *model_recipe)
const
28 const auto &inputs = *op->inputs();
30 for (
int index = 0; index < 3; ++index)
32 const tflite::Tensor *tensor =
import->tensors()->Get(inputs[index]);
33 const tflite::Buffer *buffer =
import->buffers()->Get(tensor->buffer());
34 if (tensor->type() == tflite::TensorType::TensorType_INT32)
36 auto vec = extract_buffer<int32_t>(buffer);
37 import->set_tensor_filler(inputs[index], vec);
39 else if (tensor->type() == tflite::TensorType::TensorType_FLOAT32)
41 auto vec = extract_buffer<float>(buffer);
42 import->set_tensor_filler(inputs[index], vec);
46 assert(
false &&
"Invalid tensor type");
tflchef::Operation * chefop
const tflite::Operator * tflop