boundlab.ops.deept.deept_precise_estimate#
- boundlab.ops.deept.deept_precise_estimate(x, y, *, block_size=128)[source]#
Bound the quadratic error term in a zonotope matrix product.
xandycontain the generators of an(m, k)and(k, n)matrix respectively, with the shared error-symbol dimension last. The straightforward DeepT implementation materializeseinsum("mki,knj->mnij", x, y),which requires
O(m*n*errors**2)memory. This implementation computes the same row and column absolute sums in blocks. It therefore retains BLAS-friendly matrix multiplications on CPU while using onlyO(m*n*errors*block_size)temporary memory.