Concept

Image Tensor Dimensions

By convention in deep learning, an image is commonly stored as a c×h×wc \times h \times w tensor, where cc represents the number of color channels, hh is the height, and ww is the width. While grayscale images require only a single channel (c=1c=1), modern color images typically use three channels (red, green, and blue). More complex data, such as hyperspectral imagery, can contain over 100 separate channels.

0

1

Updated 2026-06-16

Tags

D2L

Dive into Deep Learning @ D2L

Learn After