25 circlechef::ModelRecipe *model_recipe)
const
29 assert(inputs.size() == 6);
31 import->set_tensor_filler(inputs[1]);
32 import->set_tensor_filler(inputs[2]);
33 import->set_tensor_filler(inputs[3]);
34 import->set_tensor_filler(inputs[4]);
35 import->set_tensor_filler(inputs[5]);
39 circlechef::ModelRecipe *model_recipe)
const
41 auto op_params = op->builtin_options_as_GRUOptions();
42 assert(op_params !=
nullptr);
44 auto operation = model_recipe->add_operation();
46 operation->set_type(
"GRU");
48 auto op_options = operation->mutable_gru_options();
51 op_options->set_return_sequences(op_params->return_sequences());
52 op_options->set_time_major(op_params->time_major());