NCHW
NCHW is a four-dimensional tensor layout used in computer vision and deep learning. The dimension order is N, C, H, W, where N is the batch size, C the number of channels, H the height, and W the width. It is commonly used to represent a batch of N images with C channels each, each image sized H by W. The counterpart NHWC uses the order N, H, W, C.
Origin and usage: NCHW has been the de facto default in several frameworks and libraries, including Caffe
Memory layout and performance: For a tensor with shape [N, C, H, W], the strides are [C*H*W,
Examples and notes: Use NCHW for 32 images with 3 channels of size 224x224: shape [32, 3,