title: How construct input for tensorflow lite in c++?
body: <p>I am trying to figure out how should look input buffer for tensorflow lite model.</p>
  
  <p>My input should be (1, 224, 224, 3) image buffer.</p>
  
  <p>When I put to input buffer with 0 or 255 (black or white) images on the answer I am getting same answer.</p>
  
  <pre class="lang-cpp prettyprint-override"><code>uchar* in_data = new uchar[224*224*3];
  for(int i=0; i&lt;224*224*3;i++){
     // in_data[i] = 0;
     in_data[i] = 255;
  }
  
  uchar* input_1 = interpreter_stage1-&gt;typed_input_tensor&lt;uchar&gt;(0);
  
  input_1 = in_data;
  
  
  </code></pre>
  
  <p>This code is giving me the same answer for all data which I am putting as input.
  How should be constructed, proper input for the case when model dimensions are (1, 224, 224, 3)?</p>
  
  <p>For the easy case when I have only (1, 128) single dimension vector everything is working good. But with this multidimensional case I don't know how to proceed.</p>