Skip to content

Commit e74fa12

Browse files
authored
chore: bump tflite to v2.18.0 (#3)
* chore: bump tflite to v2.18.0 Signed-off-by: Cocoa <i@uwucocoa.moe>
1 parent 3ee9f7a commit e74fa12

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed

.github/workflows/edgetpu_runtime.yml

+20-3
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,13 @@ jobs:
147147
files: "edgetpu_runtime_*.tar.gz"
148148

149149
build_macos:
150-
runs-on: macos-11
150+
runs-on: macos-14
151151
env:
152152
USE_BAZEL_VERSION: "6.0.0"
153+
TF_NEED_HDFS: "0"
154+
TF_NEED_CUDA: "0"
155+
TF_NEED_ROCM: "0"
156+
TF_NEED_MKL: "0"
153157
strategy:
154158
fail-fast: false
155159
matrix:
@@ -160,16 +164,29 @@ jobs:
160164
triplet: "x86_64-apple-darwin"
161165

162166
steps:
163-
- uses: actions/checkout@v4
167+
- name: Checkout
168+
uses: actions/checkout@v4
164169

165170
- name: Install dependencies
166171
run: |
167172
brew install libusb
168-
pip3 install numpy disutils
173+
python3 -m venv edgetpu
174+
source edgetpu/bin/activate
175+
python3 -m pip install numpy disutils
176+
177+
- name: Fix macOS
178+
run: |
179+
bazel clean --expunge
180+
sudo xcode-select -s /Applications/Xcode_15.2.app/Contents/Developer
181+
sudo xcodebuild -license accept
182+
xcode-select -p
183+
bazel clean --expunge
184+
bazel shutdown
169185
170186
- name: Compile
171187
run: |
172188
export PYTHON_BIN_PATH="$(which python3)"
189+
source edgetpu/bin/activate
173190
CPU="${{ matrix.pair.cpu }}" make
174191
175192
- name: codesign

WORKSPACE

+7
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@ tf_workspace0()
9999
load("@coral_crosstool//:configure.bzl", "cc_crosstool")
100100
cc_crosstool(name = "crosstool", cpp_version = "c++14")
101101

102+
load(
103+
"@local_tsl//third_party/gpus/cuda/hermetic:cuda_configure.bzl",
104+
"cuda_configure",
105+
)
106+
107+
cuda_configure(name = "local_config_cuda")
108+
102109
BAZEL_ZIG_CC_VERSION = "1.0.3"
103110
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
104111

workspace.bzl

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ This module contains workspace definitions for building and using libedgetpu.
55
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
66
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
77

8-
# TF release 2.16.1 as of Mar 8, 2024
8+
# TF release 2.18.0 as of Oct 25, 2024
99
#
1010
# TENSORFLOW_SHA256=$(curl -fSL "https://github.com/tensorflow/tensorflow/archive/${TENSORFLOW_COMMIT}.tar.gz" | sha256sum)
11-
TENSORFLOW_COMMIT = "5bc9d26649cca274750ad3625bd93422617eed4b"
12-
TENSORFLOW_SHA256 = "fe592915c85d1a89c20f3dd89db0772ee22a0fbda78e39aa46a778d638a96abc"
11+
TENSORFLOW_COMMIT = "6550e4bd80223cdb8be6c3afd1f81e86a4d433c3"
12+
TENSORFLOW_SHA256 = "403916fbcfcbd5657cd891a871debc72433d7a8c56760297a79085e1abc8f18a"
1313

1414
CORAL_CROSSTOOL_COMMIT = "6bcc2261d9fc60dff386b557428d98917f0af491"
1515
CORAL_CROSSTOOL_SHA256 = "38cb4da13009d07ebc2fed4a9d055b0f914191b344dd2d1ca5803096343958b4"

0 commit comments

Comments
 (0)