32 tflchef::Operation *operation = ctx->
chefop;
33 const tflite::Operator *op = ctx->
tflop;
35 auto op_params = op->builtin_options_as_FakeQuantOptions();
36 assert(op_params !=
nullptr);
38 operation->set_type(
"FakeQuant");
40 auto op_options = operation->mutable_fakequant_options();
42 op_options->set_min(op_params->min());
43 op_options->set_max(op_params->max());
44 op_options->set_num_bits(op_params->num_bits());
45 op_options->set_narrow_range(op_params->narrow_range());
tflchef::Operation * chefop
const tflite::Operator * tflop