tflite_flutter_plugin icon indicating copy to clipboard operation
tflite_flutter_plugin copied to clipboard

How to use CoreML delegate

Open Kypsis opened this issue 4 years ago • 1 comments

In tflite_flutter.dart export 'src/delegates/coreml_delegate.dart'; is missing. Even if you fix that how do you actually get CoreML delegate working.

I tried what this guy did to get Metal working: https://github.com/am15h/tflite_flutter_plugin/issues/100#issuecomment-818880657 by building bazel build --config=ios_fat -c opt //tensorflow/lite/ios:TensorFlowLiteCCoreML_framework --incompatible_run_shell_command_string=false and adding extra fields for CoreML in appropriate places but inevitably you end up with symbol(s) not found for architecture arm64 error when trying to build for IOS. Fat or arm64, same result.

Kypsis avatar Jul 20 '21 14:07 Kypsis

@Kypsis I do not know if you already found a workaround, but you can just use the hosted version of TF Lite with CoreML delegate. Take a look at my fork

CaptainDario avatar Jan 18 '23 17:01 CaptainDario