title: Can't open/find model file in Android NDK TensorFlow Lite C++ API
body: <p>I followed the TensorFlow docs for how to open a saved model from a file:         <code>std::unique_ptr&lt;tflite::FlatBufferModel&gt; model = tflite::FlatBufferModel::BuildFromFile(&quot;./models/converted_model.tflite&quot;)</code>;</p>
  <p>My C++ code can not find the TFLite model file. I put it in the /src/main/cpp/ and tried to reference it. I got the error <code>E/tflite: Could not open 'converted_model.tflite'.</code></p>
  <p>This may be a really silly question but I am trying to hackathon a tensorflow lite model on an android app in native C++. I'm unfamiliar with both Android dev and C++ dev so there are many gaps in my knowledge where this could just be an obvious issue.</p>
  <p>I am fairly confident that my problem is not with the TFLite C++ API.</p>
  <p><a href="https://i.stack.imgur.com/QmqO4.png" rel="nofollow noreferrer">directory set up</a></p>
  <p>I have confirmed in python that my .tflite model file is valid and works correctly. Therefore it leads me to believe that there must be a special process for accessing files in C++ on android NDK and I can not simply use relative path from the location of the C++ file where I am trying to access the file.</p>
  <p>My C files which I include, such as the TF Lite C++ api is located in the same folder, so I assumed that I would be able to easily reference the path to the model file.</p>
  <p>Would really appreciate it if someone could point me in the right direction!</p>