getLiteRTGpuDelegateLibraryPath function
Get the DynamicLibrary that contain the GPU delegate
Implementation
String getLiteRTGpuDelegateLibraryPath(){
String libTfLitePath = "";
if (UniversalPlatform.isAndroid) {
libTfLitePath = "libtensorflowlite_gpu_jni.so";
}
else if (UniversalPlatform.isIOS) {
libTfLitePath = shouldUseDynamicLibraryProcess;
}
else if (UniversalPlatform.isMacOS) {
libTfLitePath = "libtensorflowlite_gpu_delegate_c.dylib";
}
else if (UniversalPlatform.isLinux) {
// TODO Linux
}
else if (UniversalPlatform.isWindows) {
// TODO Windows
}
if(libTfLitePath == ""){
debugPrint("$unsupportedPlatform the GPU delegate");
}
return libTfLitePath;
}