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

Method exist

src/custom/impl/param.cpp:134–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134bool Param::exist(const std::string& name) const {
135 return TypedRef(ParamImpl, m_impl.get()).m_vals.find(name) !=
136 TypedRef(ParamImpl, m_impl.get()).m_vals.end();
137}
138
139std::string Param::to_bytes(void) const {
140 std::string res;

Callers 1

make_custom_opFunction · 0.80

Calls 3

findMethod · 0.45
getMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected