boundlab.interp.base.Gemm#
- class boundlab.interp.base.Gemm[source]#
Bases:
OpHandlerONNX
Gemm:alpha * op(x) @ op(weight) + beta * bias, lowered to thetranspose/matmul/mul/addhandlers.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.- handle(interp, x, weight, bias=None, *, alpha=1.0, beta=1.0, transA=0, transB=0, **kwargs)[source]#
Transform the operands; sub-operations go through
interp.<op>so the enclosing domain’s handlers apply to them too.
- condition(*args, **kwargs)#
Whether this handler applies to these operands (default: always).
- override_handler(other)#
A copy of this handler that takes precedence over
otherwhen both are ready for the same call.