boundlab.interp.base.Cast#

class boundlab.interp.base.Cast#

Bases: OpHandler

ONNX Cast; abstract expressions only allow the no-op cast.

Methods

__init__

condition

Whether this handler applies to these operands (default: always).

handle

Transform the operands; sub-operations go through interp.<op> so the enclosing domain's handlers apply to them too.

override_handler

A copy of this handler that takes precedence over other when both are ready for the same call.

__init__(op='cast')#
condition(*args, **kwargs)#

Whether this handler applies to these operands (default: always).

handle(interp, *args, **kwargs)#

Transform the operands; sub-operations go through interp.<op> so the enclosing domain’s handlers apply to them too.

op: str = 'cast'#
override_handler(other)#

A copy of this handler that takes precedence over other when both are ready for the same call.

overrides: list[type[OpHandler]] = []#