Lines Matching refs:compilation
348 void executeWithMemoryAsInput(ANeuralNetworksCompilation* compilation, in executeWithMemoryAsInput() argument
352 ASSERT_EQ(ANeuralNetworksExecution_create(compilation, &execution), in executeWithMemoryAsInput()
362 void executeWithMemoryAsOutput(ANeuralNetworksCompilation* compilation, in executeWithMemoryAsOutput() argument
366 ASSERT_EQ(ANeuralNetworksExecution_create(compilation, &execution), in executeWithMemoryAsOutput()
855 ANeuralNetworksCompilation* compilation = nullptr; in TEST_F() local
856 EXPECT_EQ(ANeuralNetworksCompilation_create(nullptr, &compilation), in TEST_F()
859 EXPECT_EQ(ANeuralNetworksCompilation_create(mModel, &compilation), ANEURALNETWORKS_BAD_STATE); in TEST_F()
870 ANeuralNetworksCompilation* compilation = nullptr; in TEST_F() local
871 EXPECT_EQ(ANeuralNetworksCompilation_createForDevices(nullptr, &device, 1, &compilation), in TEST_F()
877 EXPECT_EQ(ANeuralNetworksCompilation_createForDevices(mModel, &device, 0, &compilation), in TEST_F()
883 &compilation), in TEST_F()
888 &compilation), in TEST_F()
892 ANeuralNetworksCompilation* compilation = nullptr; in TEST_F() local
893 EXPECT_EQ(ANeuralNetworksCompilation_createForDevices(nullptr, nullptr, 1, &compilation), in TEST_F()
897 EXPECT_EQ(ANeuralNetworksCompilation_createForDevices(mModel, nullptr, 1, &compilation), in TEST_F()
2026 ANeuralNetworksCompilation* compilation; in TEST_F() local
2027 ASSERT_EQ(ANeuralNetworksCompilation_create(mModel, &compilation), ANEURALNETWORKS_NO_ERROR); in TEST_F()
2031 EXPECT_EQ(ANeuralNetworksBurst_create(compilation, &burst), ANEURALNETWORKS_BAD_STATE); in TEST_F()
2035 ANeuralNetworksCompilation_free(compilation); in TEST_F()
2763 void runExecutionSetTimeoutTest(ANeuralNetworksCompilation* compilation, in runExecutionSetTimeoutTest() argument
2765 if (!compilation) { in runExecutionSetTimeoutTest()
2768 ASSERT_EQ(ANeuralNetworksCompilation_finish(compilation), ANEURALNETWORKS_NO_ERROR); in runExecutionSetTimeoutTest()
2776 ASSERT_EQ(ANeuralNetworksExecution_create(compilation, &execution), in runExecutionSetTimeoutTest()
2826 ASSERT_EQ(ANeuralNetworksBurst_create(compilation, &burst), in runExecutionSetTimeoutTest()
2956 ANeuralNetworksCompilation* compilation; in createAndCompileAddModelWithType() local
2957 EXPECT_EQ(ANeuralNetworksCompilation_create(model, &compilation), ANEURALNETWORKS_NO_ERROR); in createAndCompileAddModelWithType()
2958 EXPECT_EQ(ANeuralNetworksCompilation_finish(compilation), ANEURALNETWORKS_NO_ERROR); in createAndCompileAddModelWithType()
2959 return {model, compilation}; in createAndCompileAddModelWithType()
2962 static void testIncompatibleOperands(const ANeuralNetworksCompilation* compilation, in testIncompatibleOperands() argument
2968 EXPECT_EQ(ANeuralNetworksMemoryDesc_addInputRole(desc, compilation, 0, 1.0f), in testIncompatibleOperands()
2979 EXPECT_EQ(ANeuralNetworksMemoryDesc_addOutputRole(desc, compilation, 0, 1.0f), in testIncompatibleOperands()
3127 ANeuralNetworksCompilation* compilation; in createAndCompileChannelQuantConvModel() local
3128 EXPECT_EQ(ANeuralNetworksCompilation_create(model, &compilation), ANEURALNETWORKS_NO_ERROR); in createAndCompileChannelQuantConvModel()
3129 EXPECT_EQ(ANeuralNetworksCompilation_finish(compilation), ANEURALNETWORKS_NO_ERROR); in createAndCompileChannelQuantConvModel()
3130 return {model, compilation}; in createAndCompileChannelQuantConvModel()