x_shape = (2, 3, 4, 4) x = np.linspace(-0.3, 0.4, num=np.prod(x_shape)).reshape(x_shape) print(x[1,1,0:3,0:3])
array([[0.17157895, 0.17894737, 0.18631579],
[0.20105263, 0.20842105, 0.21578947],
[0.23052632, 0.23789474, 0.24526316]])
print(x[1][1][0:3][0:3])
array([[0.17157895, 0.17894737, 0.18631579, 0.19368421],
[0.20105263, 0.20842105, 0.21578947, 0.22315789],
[0.23052632, 0.23789474, 0.24526316, 0.25263158]])



