mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-29 23:06:41 +00:00
Update onnxruntime/core/providers/nnapi/nnapi_builtin/nnapi_api_helper.cc
Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
This commit is contained in:
parent
760a2b99d0
commit
36aac0036b
1 changed files with 1 additions and 2 deletions
|
|
@ -86,8 +86,7 @@ static int32_t GetDeviceFeatureLevelInternal(const ::NnApi* nnapi, const std::ve
|
|||
// we will always put CPU device at the end if cpu is enabled
|
||||
Status GetTargetDevices(const ::NnApi* nnapi, TargetDeviceOption target_device_option,
|
||||
std::vector<ANeuralNetworksDevice*>& nnapi_target_devices, std::string& nnapi_target_devices_detail) {
|
||||
// GetTargetDevices is only supported on API 29+
|
||||
// get runtime_feature_level
|
||||
// GetTargetDevices is only supported when NNAPI runtime feature level >= ANEURALNETWORKS_FEATURE_LEVEL_3
|
||||
if (GetNNAPIRuntimeFeatureLevel(nnapi) < ANEURALNETWORKS_FEATURE_LEVEL_3)
|
||||
return Status::OK();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue