Upgrade from 2.0.0 to 2.1.0, and ensure that the
nightly version always pull in the latest build
(via `changing = true`).
PiperOrigin-RevId: 303420760
Change-Id: I14d5bd2b4c181e05a392ccf97fed578088831f5b
- Don't crash when threads are changes with a delegate. This is done by now recreating interpreter every time threads is changes.
- Don't call showToast() every updateFrame() when classifier is null. This prevents hanging and allows the proper error message to be displayed.
PiperOrigin-RevId: 229503428
When testing on an API 21 emulator, the classifier fails to initialize.
`E/TfLiteCameraDemo: Failed to initialize an image classifier.`
In this situation, the app crashes when pressing Back to exit. Here's the cause:
```
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.example.android.tflitecamerademo.ImageClassifier.close()' on a null object reference
at com.example.android.tflitecamerademo.Camera2BasicFragment.onDestroy(Camera2BasicFragment.java:331)
at android.app.Fragment.performDestroy(Fragment.java:2266)
```
The fix is to check for null before calling `.close()`.
I'll investigate why the classifier is failing to initialize separately. :-)
Please approve this CL. It will be submitted automatically, and its GitHub pull request will be marked as merged.
- ListView gui for model (float and quant)
- ListView gui for devices (optional gpu, nnapi and cpu)
- Add a few AAR options.
PiperOrigin-RevId: 224626109
This change moves //tensorflow/contrib/lite to //tensorflow/lite in preparation
for TensorFlow 2.0's deprecation of contrib/. If you refer to TF Lite build
targets or headers, you will need to update them manually. If you use TF Lite
from the TensorFlow python package, "tf.contrib.lite" now points to "tf.lite".
Please update your imports as soon as possible.
For more details, see https://groups.google.com/a/tensorflow.org/forum/#!topic/tflite/iIIXOTOFvwQ
@angersson and @aselle are conducting this migration. Please contact them if
you have any further questions.
PiperOrigin-RevId: 219536476