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

Method contain_attribute_all

dnn/src/common/algo_base.cpp:39–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39bool Algorithm::contain_attribute_all(const Attribute& attr) const {
40 return attr == static_cast<Attribute>(attribute() & attr);
41}
42
43bool Algorithm::contain_attribute_any(const Attribute& attr) const {
44 return static_cast<bool>(attribute() & attr);

Callers 4

TESTFunction · 0.80
get_algo_match_attributeFunction · 0.80
attributeMethod · 0.80

Calls 1

attributeFunction · 0.50

Tested by 1

TESTFunction · 0.64