| 60 | } // namespace |
| 61 | |
| 62 | ValueRefList apply(const Operator& op, Span<ValueRef> inputs) { |
| 63 | static bool debug = MGB_GETENV("MGE_LOG_OP_DISPATCH"); |
| 64 | if (mgb_unlikely(debug)) { |
| 65 | return apply_debug(op, inputs); |
| 66 | } else { |
| 67 | return apply_release(op, inputs); |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | ValueRefList apply(const OpDef& def, Span<ValueRef> inputs) { |
| 72 | return imperative::apply(ApplyOp{def}, inputs); |