boundlab.diff.zono3.DiffSoftmax#
- class boundlab.diff.zono3.DiffSoftmax[source]#
Bases:
OpHandlerDifferential softmax over the last axis.
Plain expressions are delegated to
fallback(the domain’s standard softmax handler), so this handler owns the operator outright.Methods
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, **params)[source]#
Transform the operands; sub-operations go through
interp.<op>so the enclosing domain’s handlers apply to them too.
- __init__(op='softmax', fallback=None)#
- override_handler(other)#
A copy of this handler that takes precedence over
otherwhen both are ready for the same call.