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

Method get

src/core/impl/graph/helper.cpp:505–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503}
504
505const InterGraphVarTransformer* InterGraphVarTransformer::get(
506 const ComputingGraph& graph) {
507 auto ret = graph.options().user_data.get_user_data<InterGraphVarTransformer>();
508 if (!ret.second)
509 return nullptr;
510 mgb_assert(ret.second == 1);
511 return ret.first[0];
512}
513
514VarNode* InterGraphVarTransformer::trans(VarNode* src) const {
515 if (src->owner_graph() != m_graph_src) {

Callers 15

resetMethod · 0.45
MegDNNHandleMethod · 0.45
make_async_error_infoMethod · 0.45
wait_async_initMethod · 0.45
invokeFunction · 0.45
record_all_eventMethod · 0.45
ComputingSequenceMethod · 0.45
update_out_specsMethod · 0.45
ExecContextMethod · 0.45

Calls

no outgoing calls

Tested by 4

TESTFunction · 0.36
buildMethod · 0.36
infer_modelMethod · 0.36
TESTFunction · 0.36