boundlab.diff.zono3.DiffRelu#
- class boundlab.diff.zono3.DiffRelu#
Bases:
OpHandlerDifferential ReLU bounds for a
(x, y, d)triple.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.- __call__(x_lbub, y_lbub, d_lbub)#
Call self as a function.
- __init__(op='relu', domain=<class 'boundlab.zono.Zono'>, tighten=True, fallback=None)#
- condition(x, **kwargs)#
Whether this handler applies to these operands (default: always).
- handle(interp, x, **kwargs)#
Transform the operands; sub-operations go through
interp.<op>so the enclosing domain’s handlers apply to them too.
- override_handler(other)#
A copy of this handler that takes precedence over
otherwhen both are ready for the same call.