| 45 | } |
| 46 | |
| 47 | void 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 |
no test coverage detected