25 circlechef::ModelRecipe *model_recipe)
const
29 assert(inputs.size() == 3);
31 import->set_tensor_filler(inputs[1]);
32 import->set_tensor_filler(inputs[2]);
36 circlechef::ModelRecipe *model_recipe)
const
38 auto operation = model_recipe->add_operation();
40 operation->set_type(
"RoPE");
42 auto op_options = operation->mutable_rope_options();
44 auto op_params = op->builtin_options_as_RoPEOptions();
45 assert(op_params !=
nullptr);
47 op_options->set_mode(op_params->mode());
Loads TF lite file and provides helpers to access attributes.
circlechef::Operation * build(const circle::Operator *op, CircleImport *import, circlechef::ModelRecipe *model_recipe) const override
void filler(const circle::Operator *op, CircleImport *import, circlechef::ModelRecipe *model_recipe) const override
std::vector< T > as_index_vector(const flatbuffers::Vector< T > *flat_array)