getLiteRTFlexDelegateLibraryPath function
Get the DynamicLibrary that contains the Flex delegate
Implementation
String getLiteRTFlexDelegateLibraryPath(){
String libTfLitePath = "";
if (UniversalPlatform.isAndroid) {
libTfLitePath = 'libtensorflowlite_flex_jni.so';
}
else if (UniversalPlatform.isIOS) {
libTfLitePath = shouldUseDynamicLibraryProcess;
}
else if (UniversalPlatform.isMacOS) {
// TODO
}
else if (UniversalPlatform.isLinux) {
// TODO
}
else if (UniversalPlatform.isWindows) {
// TODO
}
if(libTfLitePath == ""){
debugPrint("$unsupportedPlatform the Flex delegate");
}
return libTfLitePath;
}