Skip to content

Commit

Permalink
fix compile issue on ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Jan 7, 2023
1 parent 4e72c6f commit 8aec56b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions build_tensorflowlite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ echo "--"

mkdir tflite_build
cd tflite_build
cmake ../tensorflow/tensorflow/lite/c
cmake ../tensorflow/tensorflow/lite/c -DTFLITE_ENABLE_GPU=ON

echo "--"
echo "building..."
echo "--"

cmake --build . -j
cmake --build . -j2 || true

FILE=./libtensorflowlite_c.so
if test -f "$FILE"; then
echo "--"
echo "build success!"
else
echo "build failed, retrying..."
cmake --build . -j
cmake --build . -j1

if test -f "$FILE"; then
echo "--"
Expand Down
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: tensorflow_lite
version: 0.9.1
version: 0.9.2

development_dependencies:
ameba:
Expand Down
2 changes: 1 addition & 1 deletion src/tensorflow_lite/lib_tensorflowlite.cr
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ lib LibTensorflowLite
type Delegate = Void*
fun interpreter_options_add_opaque_delegate = TfLiteInterpreterOptionsAddOpaqueDelegate(options : InterpreterOptions, opaque_delegate : OpaqueDelegateStruct)
type OpaqueDelegateStruct = Void*
fun interpreter_options_set_error_reporter = TfLiteInterpreterOptionsSetErrorReporter(options : InterpreterOptions, reporter : (Void*, LibC::Char*, VaList -> Void), user_data : Void*)
fun interpreter_options_set_error_reporter = TfLiteInterpreterOptionsSetErrorReporter(options : InterpreterOptions, reporter : (Void*, LibC::Char*, Void* -> Void), user_data : Void*)
fun interpreter_options_add_registration_external = TfLiteInterpreterOptionsAddRegistrationExternal(options : InterpreterOptions, registration : RegistrationExternal)
type RegistrationExternal = Void*
fun interpreter_options_enable_cancellation = TfLiteInterpreterOptionsEnableCancellation(options : InterpreterOptions, enable : LibC::Int) : Status
Expand Down

0 comments on commit 8aec56b

Please sign in to comment.