boundlab.diff.net#
Build a paired ONNX model for differential interpretation.
diff_net merges two structurally-identical ONNX models by inserting
boundlab::diff_pair nodes that pair the weights from both networks before
each shared Gemm layer. At concrete-tensor runtime the model is
equivalent to net1; when interpreted by
interpret, the diff_pair nodes create
DiffExpr2 expressions that propagate both
branches through all subsequent operations.
Functions
Merge two structurally-identical ONNX models by pairing initializer inputs. |