ANeuralNetworksDevice_getFeatureLevel

Function ANeuralNetworksDevice_getFeatureLevel 

Source
pub unsafe extern "C" fn ANeuralNetworksDevice_getFeatureLevel(
    device: *const ANeuralNetworksDevice,
    featureLevel: *mut i64,
) -> c_int
Expand description

Get the supported NNAPI version of the specified device.

Each device has a supported feature level, which is the most advanced feature this driver implements. For example, if the driver implements the features introduced in Android P, but does not implement the features introduced after Android P, the value would be 28. Developers could decide whether or not the specified device should be used for a Model that has certain feature requirements.

@param device The representation of the specified device. @param featureLevel The API level of the most advanced feature this driver implements.

@return ANEURALNETWORKS_NO_ERROR if successful.

Available since API level 29.