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.
Open the full topic