Open CaptainDario opened 2 years ago
Some progress: For NNAPI you can simply check if the android SDK version is >= 27 (docs about this).
example:
// use NNAPI on android if android API >= 27
if (androidInfo.version.sdkInt! >= 27) {
interpreter = await _nnapiInterpreter();
}
How can one check if a certain backend is available on the current device?
For example, not all android devices support the GPU delegate, when used anyways, the app crashes. Therefore I am interested in a way to check which backends are available on the current device.