boundlab.diff.expr.DiffExpr3#
- class boundlab.diff.expr.DiffExpr3[source]#
Bases:
objectA triple
(x, y, diff)for differential zonotope verification.xandytrack each network’s activations independently.diffover-approximatesf₁(x) − f₂(y).- For affine operations
f(z) = W z + b: xandyreceive both weight and bias.diffreceives only the weight (bias cancels:(Wx+b)−(Wy+b) = W(x−y)).
For pure-linear operations (no bias), all three components are updated identically.
Methods
- property shape: torch.Size#
- __init__(x, y, diff)#
- For affine operations