title: How can I convert 2-dimensional float array to float buffer?
body: <p>I am trying to feed input data to a tflite model in Kotlin, however, I have no idea for this input form. My point is how I can convert 2-dimensional float array float buffer as input shape.</p>
  <pre><code>val inputArray: Array&lt;FloatArray&gt; = ...
  var byteBuffer: ByteBuffer = allocateDirect(10 * 100 * 4)
  var inputBuffer: FloatBuffer = byteBuffer.asFloatBuffer();
  inputBuffer.put(inputArray)
  </code></pre>