How to convert 1D CHW vector<float> to 1D HWC vector<float> in C++ : I would like to know how to convert a 1D vector<float> in format CHW to a 1D  vector<float> in format HWC in C++. The format change is needed due to requirements of a neural network.