title: What is image data layout used in DNN models?
body: <p>RGB images can be stored in memory in different ways, e.g. see link below planar and interleaved:
  <a href="http://avitevet.com/uncategorized/when-to-use-it-interleaved-vs-planar-image-data-storage/" rel="nofollow noreferrer">http://avitevet.com/uncategorized/when-to-use-it-interleaved-vs-planar-image-data-storage/</a></p>
  <p>for example, for a RGB image:</p>
  <p><strong>Interleaved:</strong> Store all the bytes for pixel N before storing the bytes for pixel N + 1</p>
  <p><strong>Planar:</strong> Store all the bytes for color C before storing the bytes for color C + 1</p>
  <p>In CNNs and DNNs which is the most common way of storing images? For example in CIFAR10, CIFAR100, and Imagenet datasets</p>
  <p>In general it is only important for the the first layer, but I need to know that.</p>