There is a multi-dimensional array, e.g., data is of shape (1,320,320,1)
I once saw a function which uses
x=data[:,c:-c,d:-d]
I am not very clear about what does this mean, my original understanding is that x will keep data's first two dimensions, and take a slice from data on the third and fouth dimension. But when c=0,d=0
. The resulting x is of shape (1,0,0,1)
. I am confused about this. Thanks.