39 tflchef::Operation *operation = ctx->
chefop;
40 const tflite::Operator *op = ctx->
tflop;
42 operation->set_type(
"Reshape");
44 auto op_params = op->builtin_options_as_ReshapeOptions();
45 if (op_params !=
nullptr)
47 auto op_options = operation->mutable_reshape_options();
49 std::vector<int32_t> new_shape =
as_index_vector(op_params->new_shape());
50 for (
auto shape : new_shape)
52 op_options->add_new_shape(shape);
tflchef::Operation * chefop
const tflite::Operator * tflop