Home
last modified time | relevance | path

Searched refs:featureLevel (Results 1 – 12 of 12) sorted by relevance

/packages/modules/NeuralNetworks/common/include/
DLegacyUtils.h313 int64_t featureLevel; member
317 .featureLevel = ANEURALNETWORKS_FEATURE_LEVEL_1};
319 .featureLevel = ANEURALNETWORKS_FEATURE_LEVEL_2};
321 .featureLevel = ANEURALNETWORKS_FEATURE_LEVEL_3};
323 .featureLevel = ANEURALNETWORKS_FEATURE_LEVEL_4};
/packages/modules/NeuralNetworks/runtime/test/
DTestUpdatability.cpp38 int64_t featureLevel; in TEST_F() local
41 EXPECT_EQ(ANeuralNetworksDevice_getFeatureLevel(device, &featureLevel), in TEST_F()
44 EXPECT_LE(featureLevel, runtimeFeatureLevel); in TEST_F()
DTestGpuNnapi.cpp256 int64_t featureLevel; in getNnapiDevices() local
257 ASSERT_EQ(ANeuralNetworksDevice_getFeatureLevel(device, &featureLevel), in getNnapiDevices()
259 if (featureLevel < ANEURALNETWORKS_FEATURE_LEVEL_5) { in getNnapiDevices()
DTestValidation.cpp2762 int64_t featureLevel; in TEST() local
2767 EXPECT_EQ(ANeuralNetworksDevice_getFeatureLevel(device, &featureLevel), in TEST()
2772 EXPECT_EQ(ANeuralNetworksDevice_getFeatureLevel(nullptr, &featureLevel), in TEST()
DTestPartitioningRandom.cpp1142 return device->getFeatureLevel() < nn::kHalVersionV1_2ToApi.featureLevel; in TEST_P()
/packages/modules/NeuralNetworks/runtime/test/fuzzing/
DTestRandomGraph.cpp162 int64_t featureLevel; in SetUpTestCase() local
165 ASSERT_EQ(ANeuralNetworksDevice_getFeatureLevel(device, &featureLevel), in SetUpTestCase()
168 mStandardDevicesFeatureLevel = std::min(mStandardDevicesFeatureLevel, featureLevel); in SetUpTestCase()
195 bool shouldSkipTest(int64_t featureLevel) { in shouldSkipTest() argument
210 featureLevel <= __ANDROID_API_Q__) { in shouldSkipTest()
215 featureLevel <= __ANDROID_API_Q__) { in shouldSkipTest()
224 featureLevel <= __ANDROID_API_Q__) { in shouldSkipTest()
301 int64_t featureLevel; in computeAndVerifyResultsForDevice() local
302 ASSERT_EQ(ANeuralNetworksDevice_getFeatureLevel(device, &featureLevel), in computeAndVerifyResultsForDevice()
304 if (shouldSkipTest(featureLevel)) return; in computeAndVerifyResultsForDevice()
[all …]
/packages/modules/NeuralNetworks/runtime/
DManager.cpp246 Version featureLevel = kInterface->getFeatureLevel(); in getFeatureLevel() local
247 switch (featureLevel) { in getFeatureLevel()
261 LOG(FATAL) << "Unsupported driver feature level: " << featureLevel; in getFeatureLevel()
267 const auto featureLevel = kInterface->getFeatureLevel(); in getSupportedOperationsImpl() local
268 const auto slice = metaModel.getSlice(featureLevel); in getSupportedOperationsImpl()
270 return NN_ERROR() << "getSlice(" << featureLevel << ") failed"; in getSupportedOperationsImpl()
605 if (mDevice->getFeatureLevel() >= kHalVersionV1_3ToApi.featureLevel) { in executeFenced()
743 if (kDeviceFeatureLevel >= kHalVersionV1_3ToApi.featureLevel) { in computeFenced()
DNeuralNetworks.cpp703 int64_t* featureLevel) { in ANeuralNetworksDevice_getFeatureLevel() argument
704 if (device == nullptr || featureLevel == nullptr) { in ANeuralNetworksDevice_getFeatureLevel()
713 *featureLevel = dFeatureLevel; in ANeuralNetworksDevice_getFeatureLevel()
DMemory.cpp460 return device->getFeatureLevel() >= kHalVersionV1_3ToApi.featureLevel; in finish()
DExecutionPlan.cpp901 if (step->getDevice()->getFeatureLevel() < kHalVersionV1_2ToApi.featureLevel) { in finish()
/packages/modules/NeuralNetworks/runtime/include/
DNeuralNetworks.h457 int64_t* featureLevel) __NNAPI_INTRODUCED_IN(29);
/packages/modules/NeuralNetworks/shim_and_sl/public/
DNeuralNetworksSupportLibraryImpl.h443 int64_t* featureLevel);