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

Function make

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

Source from the content-addressed store, hash-verified

220 }
221
222 static SymbolVar make(const VarNodeArrayView& inp) {
223 mgb_assert(!inp.empty());
224 return SymbolVar{inp[0]}
225 .node()
226 ->owner_graph()
227 ->insert_opr(std::make_unique<CallbackCaller>(inp))
228 ->output(0);
229 }
230
231 void add_callback(const ComputingGraph::Callback& cb, size_t i = 0) {
232 mgb_assert(cb && i < m_cb.size());

Callers 15

to_jsonMethod · 0.70
var_node.cppFile · 0.70
to_jsonMethod · 0.70
symshapeMethod · 0.70
reshapeMethod · 0.70
broadcastMethod · 0.70
flattenMethod · 0.70
add_axisMethod · 0.70
make_scalarMethod · 0.70
var_from_tensor_shapeMethod · 0.70
register_to_oprMethod · 0.70

Calls 5

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

Tested by

no test coverage detected