Array ordering for Tensor creation

I want to create a at::Tensor from an flat array of floats. Let’s say I want to flat a multidimensional array with size (32, 3, 28, 28) to a flat array, and then use torch::from_blob

Should I use row-major order flattening, or column-major ordering?

float data[32*3*28*28];
// fill data somehow... row-major or column-major falttening...
at::Tennsor tensor_data = torch::from_blob((float*)data, {32, 3, 28, 28});