PyTorch CPU fold path eyed for parallel col2im speedups
A proposed change would process output channels concurrently and cut redundant writes on common Fold shapes.
By tensorA proposed change would process output channels concurrently and cut redundant writes on common Fold shapes.
By tensorThe CPU path indexes running mean and variance by channel count without checking buffer length, causing heap out-of-bounds access.
By tensorUnchecked offsets in _reinterpret_tensor let callers produce views that read past storage and trigger heap buffer overflows.
By tensorFull-width vector stores on tail blocks of 2D-tiled reductions corrupt memory or silently rewrite neighboring output rows.
By tensor