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

Function make

src/core/test/sublinear_memory.cpp:71–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 }
70
71 static SymbolVar make(
72 SymbolVar inp, bool bad, size_t scale, OperatorNodeConfig config = {}) {
73 return inp.node()
74 ->owner_graph()
75 ->insert_opr(std::make_unique<SublinearBadOpr>(
76 inp.node(), bad, scale, config))
77 ->output(0);
78 }
79
80 bool flag() const { return m_flag; }
81 size_t scale() const { return m_scale; }

Callers 3

bad_opr_shallow_copyFunction · 0.70
TESTFunction · 0.70

Calls 4

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

Tested by

no test coverage detected