Fast accessor for 4D tensor: [b, c, h, w].
[b, c, h, w]
double get4D(int b, int c, int h, int w) { return data[b * strides[0] + c * strides[1] + h * strides[2] + w]; }