32 tflchef::Operation *operation = ctx->
chefop;
33 const tflite::Operator *op = ctx->
tflop;
35 auto op_params = op->builtin_options_as_CastOptions();
36 assert(op_params !=
nullptr);
38 operation->set_type(
"Cast");
40 auto op_options = operation->mutable_cast_options();
42 op_options->set_in_data_type(
as_tflchef_type(op_params->in_data_type()));
43 op_options->set_out_data_type(
as_tflchef_type(op_params->out_data_type()));
tflchef::Operation * chefop
const tflite::Operator * tflop