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

Method is_same_st

imperative/src/impl/ops/opr_attr.cpp:157–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155} // anonymous namespace
156
157bool OprAttr::is_same_st(const Hashable& rhs_) const {
158 auto&& rhs = static_cast<const OprAttr&>(rhs_);
159 return type == rhs.type && param == rhs.param &&
160 policy.strategy == rhs.policy.strategy &&
161 policy.workspace_limit == rhs.policy.workspace_limit &&
162 config.comp_node() == rhs.config.comp_node() &&
163 config.output_dtype() == rhs.config.output_dtype();
164}
165
166size_t OprAttr::hash() const {
167 return hash_pair_combine(

Callers 2

custom_opdef.cppFile · 0.45
utility.cppFile · 0.45

Calls 2

output_dtypeMethod · 0.80
comp_nodeMethod · 0.45

Tested by

no test coverage detected