Files
opencv-MIRROR/modules
Arghya Bose 6120bde7d1 dnn: fix packed-B offsets for broadcast batched MatMul
MatMulHelper::updatePackedBOffsets derived the per-slice stride of the
packed constant weight as packed_B_size / batch, where `batch` is the
number of matrices in the *output*, i.e. after broadcasting the batch
dims. fastGemmPackB stores one packed matrix per batch slice actually
present in B, so when B is broadcast over the output batch dims the two
counts differ and every slice beyond the first was read at the wrong
offset. The output had the correct shape but wrong values: only the
first index along a broadcast dim matched.

Remember the number of slices stored in B (B_batch) in compute() and use
it to derive the packed stride.

Add a regression test using A(2,1,3,4) @ B(1,5,4,6); it fails before the
fix and passes after.
2026-09-29 19:02:49 +05:30
..
2026-09-23 11:18:41 +02:00
2026-09-23 14:28:55 +02:00
2026-07-09 12:17:24 +03:00
2026-07-09 12:17:24 +03:00
2026-09-23 14:28:55 +02:00
2026-09-23 11:18:41 +02:00
2026-08-19 17:38:39 +02:00