Loading neuralnetworks/1.0/utils/include/nnapi/hal/1.0/Callbacks.h +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ nn::GeneralResult<std::vector<bool>> supportedOperationsCallback( // Converts the results of IDevice::prepareModel* to the NN canonical format. On success, this // function returns with a non-null nn::SharedPreparedModel with a feature level of // nn::Version::ANDROID_OC_MR1. On failure, this function returns with the appropriate // nn::kVersionFeatureLevel1. On failure, this function returns with the appropriate // nn::GeneralError. nn::GeneralResult<nn::SharedPreparedModel> prepareModelCallback( ErrorStatus status, const sp<IPreparedModel>& preparedModel); Loading neuralnetworks/1.0/utils/include/nnapi/hal/1.0/Utils.h +1 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ namespace android::hardware::neuralnetworks::V1_0::utils { const auto kVersion = nn::Version::ANDROID_OC_MR1; constexpr auto kVersion = nn::kVersionFeatureLevel1; template <typename Type> nn::Result<void> validate(const Type& halObject) { Loading neuralnetworks/1.0/utils/src/Device.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -99,7 +99,7 @@ const std::string& Device::getVersionString() const { } nn::Version Device::getFeatureLevel() const { return nn::Version::ANDROID_OC_MR1; return kVersion; } nn::DeviceType Device::getType() const { Loading neuralnetworks/1.0/utils/test/DeviceTest.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -233,7 +233,7 @@ TEST(DeviceTest, getFeatureLevel) { const auto featureLevel = device->getFeatureLevel(); // verify result EXPECT_EQ(featureLevel, nn::Version::ANDROID_OC_MR1); EXPECT_EQ(featureLevel, nn::kVersionFeatureLevel1); } TEST(DeviceTest, getCachedData) { Loading neuralnetworks/1.1/utils/include/nnapi/hal/1.1/Utils.h +1 −1 Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ namespace android::hardware::neuralnetworks::V1_1::utils { constexpr auto kDefaultExecutionPreference = ExecutionPreference::FAST_SINGLE_ANSWER; const auto kVersion = nn::Version::ANDROID_P; constexpr auto kVersion = nn::kVersionFeatureLevel2; template <typename Type> nn::Result<void> validate(const Type& halObject) { Loading Loading
neuralnetworks/1.0/utils/include/nnapi/hal/1.0/Callbacks.h +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ nn::GeneralResult<std::vector<bool>> supportedOperationsCallback( // Converts the results of IDevice::prepareModel* to the NN canonical format. On success, this // function returns with a non-null nn::SharedPreparedModel with a feature level of // nn::Version::ANDROID_OC_MR1. On failure, this function returns with the appropriate // nn::kVersionFeatureLevel1. On failure, this function returns with the appropriate // nn::GeneralError. nn::GeneralResult<nn::SharedPreparedModel> prepareModelCallback( ErrorStatus status, const sp<IPreparedModel>& preparedModel); Loading
neuralnetworks/1.0/utils/include/nnapi/hal/1.0/Utils.h +1 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ namespace android::hardware::neuralnetworks::V1_0::utils { const auto kVersion = nn::Version::ANDROID_OC_MR1; constexpr auto kVersion = nn::kVersionFeatureLevel1; template <typename Type> nn::Result<void> validate(const Type& halObject) { Loading
neuralnetworks/1.0/utils/src/Device.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -99,7 +99,7 @@ const std::string& Device::getVersionString() const { } nn::Version Device::getFeatureLevel() const { return nn::Version::ANDROID_OC_MR1; return kVersion; } nn::DeviceType Device::getType() const { Loading
neuralnetworks/1.0/utils/test/DeviceTest.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -233,7 +233,7 @@ TEST(DeviceTest, getFeatureLevel) { const auto featureLevel = device->getFeatureLevel(); // verify result EXPECT_EQ(featureLevel, nn::Version::ANDROID_OC_MR1); EXPECT_EQ(featureLevel, nn::kVersionFeatureLevel1); } TEST(DeviceTest, getCachedData) { Loading
neuralnetworks/1.1/utils/include/nnapi/hal/1.1/Utils.h +1 −1 Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ namespace android::hardware::neuralnetworks::V1_1::utils { constexpr auto kDefaultExecutionPreference = ExecutionPreference::FAST_SINGLE_ANSWER; const auto kVersion = nn::Version::ANDROID_P; constexpr auto kVersion = nn::kVersionFeatureLevel2; template <typename Type> nn::Result<void> validate(const Type& halObject) { Loading