35 std::map<std::string, tensor::Shape> &shape_ctx = context->
shape_ctx();
36 std::map<std::string, coco::Bag *> &bag_ctx = context->
bag_ctx();
38 assert(layer.has_input_param());
39 const auto ¶m = layer.input_param();
41 for (uint32_t n = 0; n < layer.top_size(); ++n)
43 const auto &name = layer.top(n);
46 auto bag =
module->entity()->bag()->create(num_elements(shape));
47 auto input =
module->entity()->input()->create(shape);
53 module->input()->insert(input);
56 shape_ctx[name] = shape;
ShapeContext & shape_ctx()