Lines Matching refs:mCompilation
190 ASSERT_EQ(ANeuralNetworksCompilation_create(mModel, &mCompilation), in SetUp()
195 ANeuralNetworksCompilation_free(mCompilation); in TearDown()
199 ANeuralNetworksCompilation* mCompilation = nullptr; member in __anon1fd66c800111::ValidationTestCompilation
207 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in SetUp()
209 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &mExecution), in SetUp()
224 ASSERT_EQ(ANeuralNetworksBurst_create(mCompilation, &mBurst), ANEURALNETWORKS_NO_ERROR); in SetUp()
268 ASSERT_EQ(ANeuralNetworksCompilation_create(mModel, &mCompilation), in SetUp()
270 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in SetUp()
271 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &mExecution), in SetUp()
296 ANeuralNetworksCompilation_free(mCompilation); in TearDown()
377 ANeuralNetworksCompilation* mCompilation = nullptr; member in __anon1fd66c800111::ValidationTestExecutionDeviceMemory
1095 EXPECT_EQ(ANeuralNetworksCompilation_setPreference(mCompilation, 40), ANEURALNETWORKS_BAD_DATA); in TEST_F()
1103 EXPECT_EQ(ANeuralNetworksCompilation_setCaching(mCompilation, nullptr, token.data()), in TEST_F()
1105 EXPECT_EQ(ANeuralNetworksCompilation_setCaching(mCompilation, "/data/local/tmp", nullptr), in TEST_F()
1122 EXPECT_EQ(ANeuralNetworksCompilation_setPriority(mCompilation, invalidPriority), in TEST_F()
1134 EXPECT_EQ(ANeuralNetworksCompilation_setTimeout(mCompilation, kShortWaitInNanoseconds), in TEST_F()
1143 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, nullptr), in TEST_F()
1145 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_BAD_STATE); in TEST_F()
1151 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
1152 EXPECT_EQ(ANeuralNetworksCompilation_setPreference(mCompilation, in TEST_F()
1156 ANeuralNetworksCompilation_setPriority(mCompilation, ANEURALNETWORKS_PRIORITY_DEFAULT), in TEST_F()
1158 EXPECT_EQ(ANeuralNetworksCompilation_setTimeout(mCompilation, kShortWaitInNanoseconds), in TEST_F()
1161 EXPECT_EQ(ANeuralNetworksCompilation_setCaching(mCompilation, "/data/local/tmp", token.data()), in TEST_F()
1163 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_BAD_STATE); in TEST_F()
1172 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
1174 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
1185 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
1187 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
1196 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
1204 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), in TEST_F()
1259 ASSERT_EQ(ANeuralNetworksBurst_create(mCompilation, &burst), in TEST_F()
1294 ASSERT_EQ(ANeuralNetworksBurst_create(mCompilation, &burst), in TEST_F()
1500 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
1611 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(desc, mCompilation, 0, 1.0f), in TEST_F()
1627 executeWithMemoryAsInput(mCompilation, memory, ANEURALNETWORKS_OP_FAILED); in TEST_F()
1636 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), in TEST_F()
1669 executeWithMemoryAsInput(mCompilation, memory, ANEURALNETWORKS_OP_FAILED); in TEST_F()
1677 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(desc, mCompilation, 0, 1.0f), in TEST_F()
1769 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
1798 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution1), ANEURALNETWORKS_NO_ERROR); in TEST_F()
1820 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution2), ANEURALNETWORKS_NO_ERROR); in TEST_F()
1842 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2025 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &secondExecution), in TEST_F()
2091 EXPECT_EQ(ANeuralNetworksBurst_create(mCompilation, &burst), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2108 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2133 EXPECT_EQ(ANeuralNetworksBurst_create(mCompilation, &burst), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2149 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2306 &mCompilation), in SetUp()
2313 ANeuralNetworksCompilation_free(mCompilation); in TearDown()
2318 ANeuralNetworksCompilation* mCompilation = nullptr; member in __anon1fd66c800111::ValidationTestCompilationForDevices_1
2325 if (!mCompilation) { in TEST_F()
2328 EXPECT_EQ(ANeuralNetworksCompilation_setPreference(mCompilation, 40), ANEURALNETWORKS_BAD_DATA); in TEST_F()
2336 if (!mCompilation) { in TEST_F()
2339 EXPECT_EQ(ANeuralNetworksCompilation_setCaching(mCompilation, nullptr, token.data()), in TEST_F()
2341 EXPECT_EQ(ANeuralNetworksCompilation_setCaching(mCompilation, "/data/local/tmp", nullptr), in TEST_F()
2350 if (!mCompilation) { in TEST_F()
2353 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, nullptr), in TEST_F()
2355 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_BAD_STATE); in TEST_F()
2361 if (!mCompilation) { in TEST_F()
2364 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2365 EXPECT_EQ(ANeuralNetworksCompilation_setPreference(mCompilation, in TEST_F()
2369 ANeuralNetworksCompilation_setPriority(mCompilation, ANEURALNETWORKS_PRIORITY_DEFAULT), in TEST_F()
2371 EXPECT_EQ(ANeuralNetworksCompilation_setTimeout(mCompilation, kShortWaitInNanoseconds), in TEST_F()
2374 EXPECT_EQ(ANeuralNetworksCompilation_setCaching(mCompilation, "/data/local/tmp", token.data()), in TEST_F()
2376 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_BAD_STATE); in TEST_F()
2382 if (!mCompilation) { in TEST_F()
2386 EXPECT_EQ(ANeuralNetworksCompilation_setTimeout(mCompilation, kShortWaitInNanoseconds), in TEST_F()
2390 const int n = ANeuralNetworksCompilation_finish(mCompilation); in TEST_F()
2396 if (!mCompilation) { in TEST_F()
2401 EXPECT_EQ(ANeuralNetworksCompilation_setTimeout(mCompilation, duration), in TEST_F()
2403 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2425 &mCompilation), in SetUp()
2432 ANeuralNetworksCompilation_free(mCompilation); in TearDown()
2437 ANeuralNetworksCompilation* mCompilation = nullptr; member in __anon1fd66c800111::ValidationTestCompilationForDevices_2
2445 if (!mCompilation) { in TEST_F()
2450 EXPECT_EQ(ANeuralNetworksCompilation_setTimeout(mCompilation, kShortWaitInNanoseconds), in TEST_F()
2460 if (!mCompilation) { in TEST_F()
2463 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2465 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2476 if (!mCompilation) { in TEST_F()
2479 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2481 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2564 if (!mCompilation) { in TEST_F()
2567 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2575 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &execution), in TEST_F()
2642 ASSERT_EQ(ANeuralNetworksBurst_create(mCompilation, &burst), in TEST_F()
2813 runExecutionSetTimeoutTest(mCompilation, TimeoutDurationType::SHORT); in TEST_F()
2817 runExecutionSetTimeoutTest(mCompilation, TimeoutDurationType::MAXIMUM); in TEST_F()
2825 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(nullptr, mCompilation, 0, 1.0f), in TEST_F()
2831 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 0, 1.0f), in TEST_F()
2834 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2837 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 999, 1.0f), in TEST_F()
2841 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 0, 10.0f), in TEST_F()
2843 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 0, 0.0f), in TEST_F()
2845 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 0, -1.0f), in TEST_F()
2849 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 0, 1.0f), in TEST_F()
2851 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 0, 1.0f), in TEST_F()
2856 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 0, 1.0f), in TEST_F()
2861 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(nullptr, mCompilation, 0, 1.0f), in TEST_F()
2867 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(mDesc, mCompilation, 0, 1.0f), in TEST_F()
2870 ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2873 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(mDesc, mCompilation, 999, 1.0f), in TEST_F()
2877 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(mDesc, mCompilation, 0, 10.0f), in TEST_F()
2879 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(mDesc, mCompilation, 0, 0.0f), in TEST_F()
2881 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(mDesc, mCompilation, 0, -1.0f), in TEST_F()
2885 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(mDesc, mCompilation, 0, 1.0f), in TEST_F()
2887 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(mDesc, mCompilation, 0, 1.0f), in TEST_F()
2892 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(mDesc, mCompilation, 0, 1.0f), in TEST_F()
3136 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
3137 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 0, 1.0f), in TEST_F()
3153 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
3154 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 2, 1.0f), in TEST_F()
3163 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
3164 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 2, 1.0f), in TEST_F()
3180 EXPECT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
3181 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(mDesc, mCompilation, 0, 1.0f), in TEST_F()