42 assert(context !=
nullptr);
56 assert(opinputs.size() == 2);
57 assert(opoutputs.size() == 1);
59 tflite::ActivationFunctionType activation;
60 if (
auto *options = op->builtin_options_as_DivOptions())
62 activation = options->fused_activation_function();
66 activation = tflite::ActivationFunctionType_NONE;
70 assert(activation == tflite::ActivationFunctionType_NONE);
72 auto num_idx = opinputs.at(0);
73 auto denom_idx = opinputs.at(1);
74 auto out_idx = opoutputs.at(0);
83 auto *num_bag = bags.
bag(num_idx);
84 num_obj->bag(num_bag);
88 auto *denom_bag = bags.
bag(denom_idx);
89 denom_obj->bag(denom_bag);
94 auto *out_bag = bags.
bag(out_idx);
95 out_obj->bag(out_bag);
103 auto coco_div =
m->entity()->op()->create<
coco::Div>();
106 coco_div->
left(coco_load_num);
107 coco_div->right(coco_load_denom);
Class to store context to build IR from tflite.
Extracts and holds operand(tensor) information such as name, shape, and type.
const tensor::Shape & shape(uint32_t tensor_id)