39 assert(context !=
nullptr);
52 assert(opinputs.size() == 1 || opinputs.size() == 2);
53 assert(opoutputs.size() == 1);
58 int ifm_idx = opinputs.at(0);
59 int ofm_idx = opoutputs.at(0);
61 auto ifm_bag = bags.
bag(ifm_idx);
62 auto ofm_bag = bags.
bag(ofm_idx);
70 auto num_elem = ifm_bag->
size();
72 assert(num_elem == ofm_bag->
size());
74 shuffle_ins->from(ifm_bag);
75 shuffle_ins->into(ofm_bag);
77 for (uint32_t n = 0; n < num_elem; ++n)
82 shuffle_ins->insert(from, into);
Class to store context to build IR from tflite.