Skip to content

Commit 4cd81f6

Browse files
committed
renamed all TFLITE_ELIXIR* to TFLITE_BEAM*
1 parent f527e3e commit 4cd81f6

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,31 +26,31 @@ brew install autoconf automake
2626
For some Linux OSes you need to manually execute the following command to update udev rules, otherwise, libedgetpu will fail to initialize Coral devices.
2727

2828
```shell
29-
bash "3rd_party/cache/${TFLITE_ELIXIR_CORAL_LIBEDGETPU_RUNTIME}/edgetpu_runtime/install.sh"
29+
bash "3rd_party/cache/${TFLITE_BEAM_CORAL_LIBEDGETPU_RUNTIME}/edgetpu_runtime/install.sh"
3030
```
3131

3232
### Compile-Time Environment Variable
33-
- `TFLITE_ELIXIR_PREFER_PRECOMPILED`
33+
- `TFLITE_BEAM_PREFER_PRECOMPILED`
3434

35-
Use precompiled binaries when `TFLITE_ELIXIR_PREFER_PRECOMPILED` is `true`. Otherwise, this library will compile from source.
35+
Use precompiled binaries when `TFLITE_BEAM_PREFER_PRECOMPILED` is `true`. Otherwise, this library will compile from source.
3636

3737
Defaults to `true`.
3838

39-
- `TFLITE_ELIXIR_CORAL_SUPPORT`
39+
- `TFLITE_BEAM_CORAL_SUPPORT`
4040

4141
Enable Coral Support.
4242

4343
Defaults to `true`.
4444

45-
- `TFLITE_ELIXIR_CORAL_USB_THROTTLE`
45+
- `TFLITE_BEAM_CORAL_USB_THROTTLE`
4646

4747
Throttling USB Coral Devices. Please see the official warning here, [google-coral/libedgetpu](https://github.com/google-coral/libedgetpu#warning).
4848

4949
Defaults to `true`.
5050

51-
Note that only when `TFLITE_ELIXIR_CORAL_USB_THROTTLE` is set to `NO`, `:tflite_beam` will use the non-throttled libedgetpu libraries.
51+
Note that only when `TFLITE_BEAM_CORAL_USB_THROTTLE` is set to `NO`, `:tflite_beam` will use the non-throttled libedgetpu libraries.
5252

53-
- `TFLITE_ELIXIR_CORAL_LIBEDGETPU_LIBRARIES`
53+
- `TFLITE_BEAM_CORAL_LIBEDGETPU_LIBRARIES`
5454

5555
Choose which ones of the libedgetpu libraries to copy to the `priv` directory of the `:tflite_beam` app.
5656

c_src/erlang_nif_resource.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef TFLITE_ELIXIR_ERLANG_NIF_RESOURCE_H
2-
#define TFLITE_ELIXIR_ERLANG_NIF_RESOURCE_H
1+
#ifndef TFLITE_BEAM_ERLANG_NIF_RESOURCE_H
2+
#define TFLITE_BEAM_ERLANG_NIF_RESOURCE_H
33

44
#pragma once
55

@@ -105,4 +105,4 @@ struct NifResEdgeTpuContext {
105105

106106
#endif
107107

108-
#endif //TFLITE_ELIXIR_ERLANG_NIF_RESOURCE_HPP
108+
#endif //TFLITE_BEAM_ERLANG_NIF_RESOURCE_HPP

scripts/macos_libusb_rpath.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ fi
66

77
case "$(uname -s)" in
88
Darwin*)
9-
TFLITE_ELIXIR_SO_FILE="$1"
10-
LIBUSB_IN_TFLITE_ELIXIR_SO="$(otool -L "${TFLITE_ELIXIR_SO_FILE}" | grep libusb | awk -F' \\(compatibility' '/,/{gsub(/[ \t]/, "", $1);print $1}')"
9+
TFLITE_BEAM_SO_FILE="$1"
10+
LIBUSB_IN_TFLITE_BEAM_SO="$(otool -L "${TFLITE_BEAM_SO_FILE}" | grep libusb | awk -F' \\(compatibility' '/,/{gsub(/[ \t]/, "", $1);print $1}')"
1111
LIBUSB="@rpath/libusb-1.0.0.dylib"
12-
if [ "${LIBUSB_IN_TFLITE_ELIXIR_SO}" != "${LIBUSB}" ]; then
13-
install_name_tool -change "${LIBUSB_IN_TFLITE_ELIXIR_SO}" "${LIBUSB}" "${TFLITE_ELIXIR_SO_FILE}"
12+
if [ "${LIBUSB_IN_TFLITE_BEAM_SO}" != "${LIBUSB}" ]; then
13+
install_name_tool -change "${LIBUSB_IN_TFLITE_BEAM_SO}" "${LIBUSB}" "${TFLITE_BEAM_SO_FILE}"
1414
fi
1515
;;
1616
*)

0 commit comments

Comments
 (0)