useNnApiForAndroid property
set
useNnApiForAndroid
(bool useNnApi)
TensorFlow version >= v2.2 Set true to use NnApi Delegate for Android
Implementation
set useNnApiForAndroid(bool useNnApi) {
if (Platform.isAndroid) {
tfLiteInterpreterOptionsSetUseNNAPI(_options, 1);
}
}