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

Function make

src/core/impl/graph/cg_impl_partial.cpp:108–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 }
107
108 static ShapeProvider* make(
109 ComputingGraph& graph, const TensorShape& shape, DType dtype,
110 const OperatorNodeConfig& config) {
111 auto opr = graph.insert_opr(
112 std::make_unique<ShapeProvider>(graph, shape, dtype, config));
113 return &opr->cast_final_safe<ShapeProvider>();
114 }
115
116 //! update shape
117 void shape(const TensorShape& shape) { m_shape = shape; }

Callers 2

update_out_specsMethod · 0.70

Calls 4

insert_oprMethod · 0.45
outputMethod · 0.45
emptyMethod · 0.45
owner_graphMethod · 0.45

Tested by

no test coverage detected