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

Function is_same_st

imperative/src/impl/ops/custom_opdef.cpp:230–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230bool is_same_st(const OpDef& lhs, const OpDef& rhs) {
231 auto &&a = static_cast<const CustomOpDef&>(lhs),
232 &&b = static_cast<const CustomOpDef&>(rhs);
233 return a.param() == b.param() && a.runtime_id() == b.runtime_id();
234}
235
236std::vector<std::pair<const char*, std::string>> props(const OpDef& def) {
237 auto&& custom_opdef = def.cast_final_safe<CustomOpDef>();

Callers

nothing calls this directly

Calls 2

paramMethod · 0.45
runtime_idMethod · 0.45

Tested by

no test coverage detected