| 52 | bool has_op(const std::string& name) { return op_map().count(name) == 1; } |
| 53 | |
| 54 | std::vector<std::string> get_operators() |
| 55 | { |
| 56 | std::vector<std::string> result; |
| 57 | std::transform(op_map().begin(), op_map().end(), std::back_inserter(result), [&](auto&& p) { |
| 58 | return p.first; |
| 59 | }); |
| 60 | std::sort(result.begin(), result.end()); |
| 61 | return result; |
| 62 | } |
| 63 | |
| 64 | } // namespace MIGRAPHX_INLINE_NS |
| 65 | } // namespace migraphx |