Maximize Cache Hits: Optimal Data Arrangement

Strategic tensor layouts, like NHWC (Channels Last) for vision models, store spatially or temporally related data contiguously in memory, drastically reducing cache misses and speeding up data access on both CPUs and GPUs.

Sources

Open the full topic