Lines Matching refs:model

31     ANeuralNetworksModel* model = nullptr;  in createUnfinishedModel()  local
32 EXPECT_EQ(ANeuralNetworksModel_create(&model), ANEURALNETWORKS_NO_ERROR); in createUnfinishedModel()
37 EXPECT_EQ(ANeuralNetworksModel_addOperand(model, &type), ANEURALNETWORKS_NO_ERROR); in createUnfinishedModel()
38 EXPECT_EQ(ANeuralNetworksModel_addOperand(model, &type), ANEURALNETWORKS_NO_ERROR); in createUnfinishedModel()
43 ANeuralNetworksModel_addOperation(model, ANEURALNETWORKS_FLOOR, 1, inList, 1, outList), in createUnfinishedModel()
45 EXPECT_EQ(ANeuralNetworksModel_identifyInputsAndOutputs(model, 1, inList, 1, outList), in createUnfinishedModel()
48 return model; in createUnfinishedModel()
52 ANeuralNetworksModel* const model = createUnfinishedModel(); in createFinishedModel() local
53 EXPECT_EQ(ANeuralNetworksModel_finish(model), ANEURALNETWORKS_NO_ERROR); in createFinishedModel()
54 return model; in createFinishedModel()
84 ANeuralNetworksModel* const model = createUnfinishedModel(); in TEST() local
85 ANeuralNetworksModel_free(model); in TEST()
89 ANeuralNetworksModel* const model = createFinishedModel(); in TEST() local
92 ASSERT_EQ(ANeuralNetworksCompilation_create(model, &compilation), ANEURALNETWORKS_NO_ERROR); in TEST()
95 ANeuralNetworksModel_free(model); in TEST()
99 ANeuralNetworksModel* const model = createFinishedModel(); in TEST() local
104 ASSERT_EQ(ANeuralNetworksCompilation_createForDevices(model, devices.data(), devices.size(), in TEST()
109 ANeuralNetworksModel_free(model); in TEST()
113 ANeuralNetworksModel* const model = createFinishedModel(); in TEST() local
116 ASSERT_EQ(ANeuralNetworksCompilation_create(model, &compilation), ANEURALNETWORKS_NO_ERROR); in TEST()
125 ANeuralNetworksModel_free(model); in TEST()