boundlab.interp.OpHandler#
- class boundlab.interp.OpHandler[source]#
Bases:
objectOne implementation of an ONNX-level operator.
A handler declares which operator it implements (
op), when it applies (condition(), typically a check on the operand classes), and the transformation itself (handle()). For every dispatched call exactly one registered handler must be ready;overridesbreaks declared ties.Methods
__init__Whether this handler applies to these operands (default: always).
Transform the operands; sub-operations go through
interp.<op>so the enclosing domain's handlers apply to them too.A copy of this handler that takes precedence over
otherwhen both are ready for the same call.- override_handler(other)[source]#
A copy of this handler that takes precedence over
otherwhen both are ready for the same call.