| Commit message (Collapse) | Author | Age |
|
|
|
| |
PiperOrigin-RevId: 215978771
|
|
|
|
|
|
|
|
| |
Fix an issue where the Java Tensor class would hold a reference
to an invalidated TfLiteTensor instance. This issue was manifest
in certain models that add temporary tensors during execution.
PiperOrigin-RevId: 215582842
|
|
|
|
| |
PiperOrigin-RevId: 215266415
|
|
|
|
| |
PiperOrigin-RevId: 215015490
|
|
|
|
| |
PiperOrigin-RevId: 214986255
|
|
|
|
|
|
| |
compatibility.
PiperOrigin-RevId: 214843130
|
|
|
|
| |
PiperOrigin-RevId: 214668283
|
|
|
|
|
|
|
|
| |
The original CL broke the InterpreterTest due to use of a newly
deprecated API. This has been fixed, and deprecated API usage in the
samples has also been updated.
PiperOrigin-RevId: 214532691
|
|
|
|
| |
PiperOrigin-RevId: 214463446
|
|
|
|
| |
PiperOrigin-RevId: 214461578
|
|
|
|
| |
PiperOrigin-RevId: 214451901
|
|
|
|
| |
PiperOrigin-RevId: 213917881
|
|
|
|
| |
PiperOrigin-RevId: 213349833
|
|
|
|
|
|
| |
NDK 15/16.
PiperOrigin-RevId: 212292791
|
|
|
|
| |
PiperOrigin-RevId: 212064501
|
|
|
|
| |
PiperOrigin-RevId: 211879623
|
|
|
|
|
|
|
|
|
| |
These deps are unncessary and were causing unexpected breakage.
Remove them.
Fixes #20828
PiperOrigin-RevId: 211156706
|
|
|
|
| |
PiperOrigin-RevId: 209679086
|
|
|
|
|
|
|
|
|
|
| |
Expose simple Tensor and DataType Java classes that can be used for
basic introspection. Note that this change does not allow direct
mutation of Tensor objects. The client must still use the
Interpreter.invoke() API for injecting and retrieving Tensor
data.
PiperOrigin-RevId: 209473412
|
|\
| |
| |
| | |
PiperOrigin-RevId: 208262649
|
| |
| |
| |
| | |
PiperOrigin-RevId: 208124726
|
| |
| |
| |
| | |
PiperOrigin-RevId: 206013732
|
| |
| |
| |
| | |
PiperOrigin-RevId: 205673447
|
|\ \
| | |
| | |
| | | |
PiperOrigin-RevId: 205251509
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 204978094
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 204802505
|
| | | |
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 203993466
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 203826817
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 203817866
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 203037623
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 203029983
|
| | | |
|
| | |
| | |
| | | |
Fixes #20453
|
| | | |
|
| |\ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 202037575
|
| |\ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 201713241
|
| |\ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 201110240
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 201052263
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 201033171
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 201011811
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
TESTING
Used Android Studio 3.1.3, NDK r17b and Pixel XL API 24 emulator.
Blocked from testing the built app due to this issue: https://github.com/tensorflow/tensorflow/issues/18658
Did a ./gradlew clean. Deleted intermediate download and unzipped versions of the model:
```
$ rm app/build/intermediates/mobilenet_v1_224_android_quant_2017_11_08.zip
$ rm app/src/main/assets/mobilenet_quant_v1_224.tflite
```
Built the app and confirmed the model got downloaded and unzipped:
```
$ ./gradlew assemble
<snip>
:app:downloadModel
Downloading https://storage.googleapis.com/download.tensorflow.org/models/tflite/mobilenet_v1_224_android_quant_2017_11_08.zip
:app:unzipModel
Unzipping build/intermediates/mobilenet_v1_224_android_quant_2017_11_08.zip
:app:preBuild
<snip>
```
Deleted the model file from the assets folder and checked it gets unzipped again from the intermediate storage location:
```
$ ./gradlew assemble
<snip>
:app:downloadModel UP-TO-DATE
:app:unzipModel
Unzipping build/intermediates/mobilenet_v1_224_android_quant_2017_11_08.zip
:app:preBuild
<snip>
```
Built it again and check it doesn't get downloaded or unzipped again:
```
$ ./gradlew assemble
<snip>
:app:downloadModel UP-TO-DATE
:app:unzipModel UP-TO-DATE
<snip>
```
|
| | |
| | |
| | |
| | | |
PiperOrigin-RevId: 200795402
|
| |\ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When the demo app updates to use a backwards-incompatible change to the TFLite Java API at HEAD, it'll fail to build on the old release (which is missing the API change).
Using the nightly build means the demo app will use a relatively fresh TFLite
build with API changes, in addition to other improvements. The user may need to
pull the latest demo code to keep up.
PiperOrigin-RevId: 200672004
|
| |\ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Prefer get*ArrayRegion to avoid a JNI hop and (potentially) an extra
copy when copying Java inputs during interpreter execution.
PiperOrigin-RevId: 199530084
|