Skip to content

Commit 3ed5cd0

Browse files
TensorFlow version 2.18.0
1 parent 26d4dbf commit 3ed5cd0

24 files changed

+110
-103
lines changed

.github/workflows/build_riscv.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
matrix:
3232
target_machine: [qemuriscv64, qemuriscv32]
33-
tensorflow_version: [2.16.1]
33+
tensorflow_version: [2.18.0]
3434

3535
# The type of runner that the job will run on
3636
runs-on: ubuntu-22.04

.github/workflows/build_rpi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
matrix:
3131
target_machine: [raspberrypi-cm, raspberrypi-cm3, raspberrypi, raspberrypi0-2w-64, raspberrypi0-wifi, raspberrypi0, raspberrypi2, raspberrypi3-64, raspberrypi3, raspberrypi4-64, raspberrypi4, raspberrypi5]
32-
tensorflow_version: [2.16.1]
32+
tensorflow_version: [2.18.0]
3333
fail-fast: false
3434

3535
# The type of runner that the job will run on

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ Please note that it is not official support.
2424
## Available recipes
2525
- framework
2626
- python3-tensorflow-lite
27-
[Python3 interpreter](recipes-framework/tensorflow-lite/python3-tensorflow-lite_2.16.1.bb)
27+
[Python3 interpreter](recipes-framework/tensorflow-lite/python3-tensorflow-lite_2.18.0.bb)
2828
- libtensorflow-lite
29-
[C++ API shared library](recipes-framework/tensorflow-lite/libtensorflow-lite_2.16.1.bb)
29+
[C++ API shared library](recipes-framework/tensorflow-lite/libtensorflow-lite_2.18.0.bb)
3030
- libtensorflow-lite-c
31-
[C API shared library](recipes-framework/tensorflow-lite/libtensorflow-lite-c_2.16.1.bb)
31+
[C API shared library](recipes-framework/tensorflow-lite/libtensorflow-lite-c_2.18.0.bb)
3232
- libedgetpu-max / libedgetpu-std
3333
[bitbake with libedgetpu](./doc/coral_libedgetpu.md)
3434
- examples
@@ -45,7 +45,7 @@ Please note that it is not official support.
4545
### Support version
4646
| Recipe | Version |
4747
| :-- | :-- |
48-
| TensorFlow Lite | v2.17.0 |
48+
| TensorFlow Lite | v2.18.0 |
4949
| libedgetpu | e35aed18fea2e2d25d98352e5a5bd357c170bd4d |
5050
| FlatBuffers | v23.5.26 |
5151

doc/python3-tensorflow-lite-example.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Reference
44

5-
- [TensorFlow Lite Python image classification demo - tensorflow/tensorflow](https://github.com/tensorflow/tensorflow/blob/v2.16.1/tensorflow/lite/examples/python/README.md)
5+
- [TensorFlow Lite Python image classification demo - tensorflow/tensorflow](https://github.com/tensorflow/tensorflow/blob/v2.18.0/tensorflow/lite/examples/python/README.md)
66

77
## How to
88
Build sample on Raspberry Pi 4 AArch64 (core-image-weston).
@@ -68,4 +68,4 @@ time: 369.129ms
6868
## Code changes
6969
The original code imports `tensorflow`. I am changing this to import `tflite_runtime.interpreter`. This has been modified to work with TensorFlow Lite.
7070
See below for changes to the original code.
71-
- [001-v2.15_label_image_py.patch](recipes-examples/tensorflow-lite/python/files/001-v2.15_label_image_py.patch)
71+
- [001-label_image_py.patch](recipes-examples/tensorflow-lite/python/files/001-label_image_py.patch)

doc/tensorflow-lite-benchmark.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Reference
44

5-
- [TFLite Model Benchmark Tool with C++ Binary - tensorflow/tensorflow](https://github.com/tensorflow/tensorflow/blob/v2.16.1/tensorflow/lite/tools/benchmark/README.md)
5+
- [TFLite Model Benchmark Tool with C++ Binary - tensorflow/tensorflow](https://github.com/tensorflow/tensorflow/blob/v2.18.0/tensorflow/lite/tools/benchmark/README.md)
66

77
## How to
88
Build sample on qemueriscv64 (core-image-full-cmdline).

doc/tensorflow-lite-label-image.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Reference
44

5-
- [TensorFlow Lite C++ image classification demo - tensorflow/tensorflow](https://github.com/tensorflow/tensorflow/blob/v2.16.1/tensorflow/lite/examples/label_image/README.md)
5+
- [TensorFlow Lite C++ image classification demo - tensorflow/tensorflow](https://github.com/tensorflow/tensorflow/blob/v2.18.0/tensorflow/lite/examples/label_image/README.md)
66

77
## How to
88
Build sample on qemueriscv64 (core-image-full-cmdline).
@@ -73,6 +73,6 @@ The original sample CMake statically links tensorflow-lite.
7373
In this recipe, we will modify CMake to link the shared library (libtensorflow-lite.so) and change the include path of the header file so that it can be built independently.
7474

7575
For more information about the changes in CMake and source, please refer to the following patch.
76-
- [001-v2.15_label_image_cpp.patch](../recipes-examples/tensorflow-lite/files/001-v2.15_label_image_cpp.patch)
76+
- [001-label_image_cpp.patch](../recipes-examples/tensorflow-lite/files/001-label_image_cpp.patch)
7777

78-
See [libtensorflow-lite](../recipes-framework/tensorflow-lite/libtensorflow-lite_2.16.1.bb) for a recipe to build a shared library for libtensorflow-lite.so.
78+
See [libtensorflow-lite](../recipes-framework/tensorflow-lite/libtensorflow-lite_2.18.0.bb) for a recipe to build a shared library for libtensorflow-lite.so.

doc/tensorflow-lite-minimal.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Reference
44

5-
- [TensorFlow Lite C++ minimal example - tensorflow/tensorflow](https://github.com/tensorflow/tensorflow/blob/v2.16.1/tensorflow/lite/examples/minimal/README.md)
5+
- [TensorFlow Lite C++ minimal example - tensorflow/tensorflow](https://github.com/tensorflow/tensorflow/blob/v2.18.0/tensorflow/lite/examples/minimal/README.md)
66

77
## How to
88
Build sample on Raspberry Pi 4 AArch64 (core-image-weston).
@@ -71,6 +71,6 @@ The original sample CMake statically links tensorflow-lite.
7171
In this recipe, we will modify CMake to link the shared library (libtensorflow-lite.so) so that it can be built independently.
7272

7373
For more information about the changes in CMake, please refer to the following patch.
74-
- [001-v2.15_minimal_cmake.patch](../recipes-examples/tensorflow-lite/files/001-v2.15_minimal_cmake.patch)
74+
- [001-minimal_cmake.patch](../recipes-examples/tensorflow-lite/files/001-minimal_cmake.patch)
7575

76-
See [libtensorflow-lite](../recipes-framework/tensorflow-lite/libtensorflow-lite_2.16.1.bb) for a recipe to build a shared library for libtensorflow-lite.so.
76+
See [libtensorflow-lite](../recipes-framework/tensorflow-lite/libtensorflow-lite_2.18.0.bb) for a recipe to build a shared library for libtensorflow-lite.so.

recipes-examples/tensorflow-lite/files/001-label_image_cpp.patch

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Upstream-Status: Pending
22

33
diff --git a/tensorflow/lite/examples/label_image/CMakeLists.txt b/tensorflow/lite/examples/label_image/CMakeLists.txt
4-
index 9874801f34f..545ceec2381 100644
4+
index 2fcb09ce96e..48b24f15f6b 100644
55
--- a/tensorflow/lite/examples/label_image/CMakeLists.txt
66
+++ b/tensorflow/lite/examples/label_image/CMakeLists.txt
77
@@ -15,12 +15,27 @@
@@ -36,7 +36,7 @@ index 9874801f34f..545ceec2381 100644
3636
${XLA_SOURCE_DIR}/xla/tsl/util/stats_calculator.cc
3737
${TFLITE_SOURCE_DIR}/profiling/memory_info.cc
3838
${TFLITE_SOURCE_DIR}/profiling/profile_summarizer.cc
39-
@@ -42,20 +57,18 @@ else()
39+
@@ -42,14 +57,6 @@ else()
4040
set(TFLITE_LABEL_IMAGE_CC_OPTIONS "-DTFLITE_WITHOUT_XNNPACK")
4141
endif() # TFLITE_ENABLE_XNNPACK
4242

@@ -51,25 +51,14 @@ index 9874801f34f..545ceec2381 100644
5151
if(TFLITE_ENABLE_GPU)
5252
list(APPEND TFLITE_LABEL_IMAGE_SRCS
5353
${TFLITE_SOURCE_DIR}/tools/delegates/gpu_delegate_provider.cc
54-
)
55-
endif() # TFLITE_ENABLE_GPU
56-
57-
+include_directories(label_image
58-
+ PUBLIC
59-
+ ${CMAKE_BINARY_DIR}
54+
@@ -64,6 +71,7 @@ endif()
55+
include_directories(label_image
56+
PUBLIC
57+
${CMAKE_BINARY_DIR}
6058
+ ${TFLITE_SOURCE_DIR}/examples
61-
+)
62-
+
63-
if(TFLITE_ENABLE_EXTERNAL_DELEGATE)
64-
list(APPEND TFLITE_LABEL_IMAGE_SRCS
65-
${TFLITE_SOURCE_DIR}/tools/delegates/external_delegate_provider.cc)
66-
@@ -78,4 +91,6 @@ target_compile_options(label_image
67-
)
68-
target_link_libraries(label_image
69-
tensorflow-lite
70-
+ profiling_info_proto
71-
+ protobuf
7259
)
60+
61+
add_executable(label_image
7362
diff --git a/tensorflow/lite/examples/label_image/bitmap_helpers.cc b/tensorflow/lite/examples/label_image/bitmap_helpers.cc
7463
index d3698f3b222..c9954126e9d 100644
7564
--- a/tensorflow/lite/examples/label_image/bitmap_helpers.cc

recipes-examples/tensorflow-lite/python3-tensorflow-lite-example_2.17.0.bb renamed to recipes-examples/tensorflow-lite/python3-tensorflow-lite-example_2.18.0.bb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=4158a261ca7f2525513e31ba9c50ae98"
66
BPV = "${@'.'.join(d.getVar('PV').split('.')[0:2])}"
77
DPV = "${@'.'.join(d.getVar('PV').split('.')[0:3])}"
88

9-
SRCREV_tensorflow = "ad6d8cc177d0c868982e39e0823d0efbfb95f04c"
9+
SRCREV_tensorflow = "6550e4bd80223cdb8be6c3afd1f81e86a4d433c3"
1010

1111
SRC_URI[model.sha256sum] = "1ccb74dbd9c5f7aea879120614e91617db9534bdfaa53dfea54b7c14162e126b"
1212
SRC_URI[label.sha256sum] = "366a2d53008df0d2a82b375e2020bbc57e43bbe19971370e47b7f74ea0aaab91"

recipes-examples/tensorflow-lite/tensorflow-lite-label-image_2.17.0.bb renamed to recipes-examples/tensorflow-lite/tensorflow-lite-label-image_2.18.0.bb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=4158a261ca7f2525513e31ba9c50ae98"
66
BPV = "${@'.'.join(d.getVar('PV').split('.')[0:2])}"
77
DPV = "${@'.'.join(d.getVar('PV').split('.')[0:3])}"
88

9-
SRCREV_tensorflow = "ad6d8cc177d0c868982e39e0823d0efbfb95f04c"
9+
SRCREV_tensorflow = "6550e4bd80223cdb8be6c3afd1f81e86a4d433c3"
1010

1111
SRC_URI[model.sha256sum] = "1ccb74dbd9c5f7aea879120614e91617db9534bdfaa53dfea54b7c14162e126b"
1212
SRC_URI[label.sha256sum] = "366a2d53008df0d2a82b375e2020bbc57e43bbe19971370e47b7f74ea0aaab91"

0 commit comments

Comments
 (0)