<p dir="auto">Hi ,<br>
I follow steps in : <a href="https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite">https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite</a> to build tensoflowlite from sources.</p>
<p dir="auto">trying run output demo apk on Google Pixel 2   create crash :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="03-07 06:09:44.739 22823-22837/? I/Adreno: ESXAPILOG: API logging initialized: Name = com.example.android.tflitecamerademo, PID = 22823
03-07 06:09:44.744 22823-22823/? W/linker: /data/app/com.example.android.tflitecamerademo-qSwQ-3Ztm2MtPAw8Lu3x4A==/lib/arm64/libtensorflowlite_jni.so: is missing DT_SONAME will use basename as a replacement: &quot;libtensorflowlite_jni.so&quot;
03-07 06:09:44.744 22823-22823/? W/System.err: TensorFlowLite: failed to load native library: dlopen failed: cannot locate symbol &quot;_ZN6tflite14getCurrentTimeEv&quot; referenced by &quot;/data/app/com.example.android.tflitecamerademo-qSwQ-3Ztm2MtPAw8Lu3x4A==/lib/arm64/libtensorflowlite_jni.so&quot;...
03-07 06:09:44.745 22823-22823/? W/linker: /data/app/com.example.android.tflitecamerademo-qSwQ-3Ztm2MtPAw8Lu3x4A==/lib/arm64/libtensorflowlite_jni.so: is missing DT_SONAME will use basename as a replacement: &quot;libtensorflowlite_jni.so&quot;
03-07 06:09:44.745 22823-22823/? W/System.err: TensorFlowLite: failed to load native library: dlopen failed: cannot locate symbol &quot;_ZN6tflite14getCurrentTimeEv&quot; referenced by &quot;/data/app/com.example.android.tflitecamerademo-qSwQ-3Ztm2MtPAw8Lu3x4A==/lib/arm64/libtensorflowlite_jni.so&quot;...
03-07 06:09:44.745 22823-22823/? E/zygote64: No implementation found for long org.tensorflow.lite.NativeInterpreterWrapper.createErrorReporter(int) (tried Java_org_tensorflow_lite_NativeInterpreterWrapper_createErrorReporter and Java_org_tensorflow_lite_NativeInterpreterWrapper_createErrorReporter__I)
03-07 06:09:44.745 22823-22823/? D/AndroidRuntime: Shutting down VM
03-07 06:09:44.746 22823-22823/? E/AndroidRuntime: FATAL EXCEPTION: main
                                                   Process: com.example.android.tflitecamerademo, PID: 22823
                                                   java.lang.UnsatisfiedLinkError: No implementation found for long org.tensorflow.lite.NativeInterpreterWrapper.createErrorReporter(int) (tried Java_org_tensorflow_lite_NativeInterpreterWrapper_createErrorReporter and Java_org_tensorflow_lite_NativeInterpreterWrapper_createErrorReporter__I)
                                                       at org.tensorflow.lite.NativeInterpreterWrapper.createErrorReporter(Native Method)
                                                       at org.tensorflow.lite.NativeInterpreterWrapper.&lt;init&gt;(NativeInterpreterWrapper.java:48)
                                                       at org.tensorflow.lite.Interpreter.&lt;init&gt;(Interpreter.java:77)
                                                       at com.example.android.tflitecamerademo.ImageClassifier.&lt;init&gt;(ImageClassifier.java:87)
                                                       at com.example.android.tflitecamerademo.ImageClassifierFloatIntel.&lt;init&gt;(ImageClassifierFloatIntel.java:50)
                                                       at com.example.android.tflitecamerademo.CameraActivity.testImage(CameraActivity.java:71)
                                                       at com.example.android.tflitecamerademo.CameraActivity.onCreate(CameraActivity.java:36)
                                                       at android.app.Activity.performCreate(Activity.java:6999)
                                                       at android.app.Activity.performCreate(Activity.java:6990)
                                                       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
                                                       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)
                                                       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
                                                       at android.app.ActivityThread.-wrap11(Unknown Source:0)
                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
                                                       at android.os.Handler.dispatchMessage(Handler.java:106)
                                                       at android.os.Looper.loop(Looper.java:164)
                                                       at android.app.ActivityThread.main(ActivityThread.java:6494)
                                                       at java.lang.reflect.Method.invoke(Native Method)
                                                       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)"><pre class="notranslate"><code class="notranslate">03-07 06:09:44.739 22823-22837/? I/Adreno: ESXAPILOG: API logging initialized: Name = com.example.android.tflitecamerademo, PID = 22823
03-07 06:09:44.744 22823-22823/? W/linker: /data/app/com.example.android.tflitecamerademo-qSwQ-3Ztm2MtPAw8Lu3x4A==/lib/arm64/libtensorflowlite_jni.so: is missing DT_SONAME will use basename as a replacement: "libtensorflowlite_jni.so"
03-07 06:09:44.744 22823-22823/? W/System.err: TensorFlowLite: failed to load native library: dlopen failed: cannot locate symbol "_ZN6tflite14getCurrentTimeEv" referenced by "/data/app/com.example.android.tflitecamerademo-qSwQ-3Ztm2MtPAw8Lu3x4A==/lib/arm64/libtensorflowlite_jni.so"...
03-07 06:09:44.745 22823-22823/? W/linker: /data/app/com.example.android.tflitecamerademo-qSwQ-3Ztm2MtPAw8Lu3x4A==/lib/arm64/libtensorflowlite_jni.so: is missing DT_SONAME will use basename as a replacement: "libtensorflowlite_jni.so"
03-07 06:09:44.745 22823-22823/? W/System.err: TensorFlowLite: failed to load native library: dlopen failed: cannot locate symbol "_ZN6tflite14getCurrentTimeEv" referenced by "/data/app/com.example.android.tflitecamerademo-qSwQ-3Ztm2MtPAw8Lu3x4A==/lib/arm64/libtensorflowlite_jni.so"...
03-07 06:09:44.745 22823-22823/? E/zygote64: No implementation found for long org.tensorflow.lite.NativeInterpreterWrapper.createErrorReporter(int) (tried Java_org_tensorflow_lite_NativeInterpreterWrapper_createErrorReporter and Java_org_tensorflow_lite_NativeInterpreterWrapper_createErrorReporter__I)
03-07 06:09:44.745 22823-22823/? D/AndroidRuntime: Shutting down VM
03-07 06:09:44.746 22823-22823/? E/AndroidRuntime: FATAL EXCEPTION: main
                                                   Process: com.example.android.tflitecamerademo, PID: 22823
                                                   java.lang.UnsatisfiedLinkError: No implementation found for long org.tensorflow.lite.NativeInterpreterWrapper.createErrorReporter(int) (tried Java_org_tensorflow_lite_NativeInterpreterWrapper_createErrorReporter and Java_org_tensorflow_lite_NativeInterpreterWrapper_createErrorReporter__I)
                                                       at org.tensorflow.lite.NativeInterpreterWrapper.createErrorReporter(Native Method)
                                                       at org.tensorflow.lite.NativeInterpreterWrapper.&lt;init&gt;(NativeInterpreterWrapper.java:48)
                                                       at org.tensorflow.lite.Interpreter.&lt;init&gt;(Interpreter.java:77)
                                                       at com.example.android.tflitecamerademo.ImageClassifier.&lt;init&gt;(ImageClassifier.java:87)
                                                       at com.example.android.tflitecamerademo.ImageClassifierFloatIntel.&lt;init&gt;(ImageClassifierFloatIntel.java:50)
                                                       at com.example.android.tflitecamerademo.CameraActivity.testImage(CameraActivity.java:71)
                                                       at com.example.android.tflitecamerademo.CameraActivity.onCreate(CameraActivity.java:36)
                                                       at android.app.Activity.performCreate(Activity.java:6999)
                                                       at android.app.Activity.performCreate(Activity.java:6990)
                                                       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
                                                       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)
                                                       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
                                                       at android.app.ActivityThread.-wrap11(Unknown Source:0)
                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
                                                       at android.os.Handler.dispatchMessage(Handler.java:106)
                                                       at android.os.Looper.loop(Looper.java:164)
                                                       at android.app.ActivityThread.main(ActivityThread.java:6494)
                                                       at java.lang.reflect.Method.invoke(Native Method)
                                                       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
</code></pre></div>
<p dir="auto">Build command :  bazel build --cxxopt=--std=c++11 //tensorflow/contrib/lite/java/demo/app/src/main:TfLiteCameraDemo --config=android_arm64 --cpu=arm64-v8a --fat_apk_cpu=arm64-v8a</p>
<p dir="auto">Tensorflow WORKSPACE file changes:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Uncomment and update the paths in these entries to build the Android demo.
android_sdk_repository(
    name = &quot;androidsdk&quot;,
   api_level = 27,
   # Ensure that you have the build_tools_version below installed in the
    # SDK manager as it updates periodically.
    build_tools_version = &quot;27.0.3&quot;,
    # Replace with path to Android SDK on your system
    path = &quot;/home/XXX/Android/Sdk/&quot;,
)

android_ndk_repository(
    name=&quot;androidndk&quot;,
    path=&quot;/home/dnozik/Code/Tensorflow/android-ndk-r14b/&quot;,
    # This needs to be 14 or higher to compile TensorFlow.
#    # Please specify API level to &gt;= 21 to build for 64-bit
#    # archtectures or the Android NDK will automatically select biggest
#    # API level that it supports without notice.
#    # Note that the NDK version is not the API level.
    api_level=27)"><pre class="notranslate"><code class="notranslate"># Uncomment and update the paths in these entries to build the Android demo.
android_sdk_repository(
    name = "androidsdk",
   api_level = 27,
   # Ensure that you have the build_tools_version below installed in the
    # SDK manager as it updates periodically.
    build_tools_version = "27.0.3",
    # Replace with path to Android SDK on your system
    path = "/home/XXX/Android/Sdk/",
)

android_ndk_repository(
    name="androidndk",
    path="/home/dnozik/Code/Tensorflow/android-ndk-r14b/",
    # This needs to be 14 or higher to compile TensorFlow.
#    # Please specify API level to &gt;= 21 to build for 64-bit
#    # archtectures or the Android NDK will automatically select biggest
#    # API level that it supports without notice.
#    # Note that the NDK version is not the API level.
    api_level=27)
</code></pre></div>
<p dir="auto">Symbols:<br>
XXX@XXX-VirtualBox:~/Code$ nm -S libtensorflowlite_jni.so<br>
nm: libtensorflowlite_jni.so: no symbols</p>
<p dir="auto">Thanks for help.</p>
<p dir="auto">It would be nice to be able to append or remove samples to or from an existing set of samples saved in a tfrecords file. Otherwise the file has to be duplicated, which is unpractical for datasets &gt;&gt; 1TB.<br>
Formulated in a more generalized way, this can also be seen as splitting and concatenating tfrecord files.</p>