25 tflchef::ModelRecipe *model_recipe)
const
29 bool hasBias = (inputs.size() == 3);
30 assert(inputs.size() == 2 || hasBias);
32 import->set_tensor_filler(inputs.at(1));
34 import->set_tensor_filler(inputs.at(2));
39 tflchef::Operation *operation = ctx->
chefop;
40 const tflite::Operator *op = ctx->
tflop;
42 auto op_params = op->builtin_options_as_Conv2DOptions();
43 assert(op_params !=
nullptr);
45 operation->set_type(
"Conv2D");
47 auto op_options = operation->mutable_conv2d_options();
50 op_options->set_stride_h(op_params->stride_h());
51 op_options->set_stride_w(op_params->stride_w());
53 op_options->set_dilation_w_factor(op_params->dilation_w_factor());
54 op_options->set_dilation_h_factor(op_params->dilation_h_factor());
tflchef::Operation * chefop
const tflite::Operator * tflop