MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / init_output_static_infer_desc

Function init_output_static_infer_desc

src/core/impl/graph/cg_impl.cpp:170–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168 }
169
170 void init_output_static_infer_desc() override {
171 using namespace cg::static_infer;
172 owner_graph()->static_infer_manager().register_shape_infer(
173 output(0), ShapeInferDesc::make_const({}));
174 }
175
176 void add_input_layout_constraint() override {
177 if (owner_graph()->options().comp_node_seq_record_level) {

Callers

nothing calls this directly

Calls 2

make_constFunction · 0.85
register_shape_inferMethod · 0.45

Tested by

no test coverage detected