You can think of it as dummy dimensions. For example take a 2 matrices of shape h,w. Each is of shape (h,w). You can think of it as a 3D matrix where one of the dimensions is of size 1, let’s say (1,h,w). Now you can for example to concatenate the two 2d matrices on the first dim to get a (2,h,w) 3D matrix