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

Method check_attribute

dnn/src/common/algo_base.cpp:47–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void Algorithm::check_attribute(
48 const Attribute& positive_attr, const Attribute& negative_attr) const {
49 megdnn_assert(
50 contain_attribute_all(positive_attr) &&
51 !contain_attribute_any(negative_attr),
52 "require algorithm with attribute(%s) and without "
53 "attribute(%s), but get"
54 "algorithm(%s) with attribute(%s) ",
55 Algorithm::attribute_str(positive_attr).c_str(),
56 Algorithm::attribute_str(negative_attr).c_str(), name(),
57 Algorithm::attribute_str(attribute()).c_str());
58}
59
60// vim: syntax=cpp.doxygen

Calls 2

nameFunction · 0.50
attributeFunction · 0.50

Tested by

no test coverage detected