am15h / tflite_flutter_plugin

TensorFlow Lite Flutter Plugin
https://pub.dev/packages/tflite_flutter
Apache License 2.0
499 stars 352 forks source link

Tflite 2.11.0 ios error! #215

Open lktinh2018 opened 1 year ago

lktinh2018 commented 1 year ago

Hello, I built tflite 2.11.0 successfully. But I got this error while running. Please help me!

2022-12-09 23:17:31.244139+0700 Runner[4348:262567] Created TensorFlow Lite delegate for Metal. INFO: Created TensorFlow Lite delegate for Metal. 2022-12-09 23:17:31.246144+0700 Runner[4348:262567] flutter: Error while creating interpreter: Invalid argument(s): Failed to lookup symbol 'TfLiteInterpreterOptionsCreate': dlsym(RTLD_DEFAULT, TfLiteInterpreterOptionsCreate): symbol not found 2022-12-09 23:17:31.249074+0700 Runner[4348:262567] [VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to lookup symbol 'TfLiteInterpreterOptionsCreate': dlsym(RTLD_DEFAULT, TfLiteInterpreterOptionsCreate): symbol not found

walsha2 commented 1 year ago

Repo is seemingly no longer maintained - please upvote #221

CaptainDario commented 1 year ago

Hello, I built tflite 2.11.0 successfully. But I got this error while running. Please help me!

2022-12-09 23:17:31.244139+0700 Runner[4348:262567] Created TensorFlow Lite delegate for Metal. INFO: Created TensorFlow Lite delegate for Metal. 2022-12-09 23:17:31.246144+0700 Runner[4348:262567] flutter: Error while creating interpreter: Invalid argument(s): Failed to lookup symbol 'TfLiteInterpreterOptionsCreate': dlsym(RTLD_DEFAULT, TfLiteInterpreterOptionsCreate): symbol not found 2022-12-09 23:17:31.249074+0700 Runner[4348:262567] [VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to lookup symbol 'TfLiteInterpreterOptionsCreate': dlsym(RTLD_DEFAULT, TfLiteInterpreterOptionsCreate): symbol not found

Does CPU inference work? If not, It seems like you did not build your library with Metal delegate support. Therefore it is not finding the symbols.