Lines Matching refs:model
48 Model model = modelBuilder->makeModel(); in testAvailableSinceVersion() local
49 const auto modelVersion = validate(model); in testAvailableSinceVersion()
69 WrapperModel model; in TEST_F() local
70 auto op1 = model.addOperand(&kTypeTensorFloatRank0); in TEST_F()
71 auto op2 = model.addOperand(&kTypeTensorFloatRank0); in TEST_F()
72 auto op3 = model.addOperand(&kTypeTensorFloat); in TEST_F()
73 auto act = model.addConstantOperand(&kTypeInt32, kNoActivation); in TEST_F()
74 model.addOperation(ANEURALNETWORKS_ADD, {op1, op2, act}, {op3}); in TEST_F()
75 model.identifyInputsAndOutputs({op1, op2}, {op3}); in TEST_F()
76 ASSERT_TRUE(model.isValid()); in TEST_F()
77 model.finish(); in TEST_F()
78 testAvailableSinceVersion(model, kVersionFeatureLevel3); in TEST_F()
83 WrapperModel model; in TEST_F() local
84 auto op1 = model.addOperand(&kTypeTensorFloat); in TEST_F()
85 auto op2 = model.addOperand(&kTypeTensorFloat); in TEST_F()
86 auto op3 = model.addOperand(&kTypeTensorFloatRank0); in TEST_F()
87 auto act = model.addConstantOperand(&kTypeInt32, kNoActivation); in TEST_F()
88 model.addOperation(ANEURALNETWORKS_ADD, {op1, op2, act}, {op3}); in TEST_F()
89 model.identifyInputsAndOutputs({op1, op2}, {op3}); in TEST_F()
90 ASSERT_TRUE(model.isValid()); in TEST_F()
91 model.finish(); in TEST_F()
92 testAvailableSinceVersion(model, kVersionFeatureLevel3); in TEST_F()
97 WrapperModel model; in TEST_F() local
98 auto op1 = model.addOperand(&kTypeTensorFloat); in TEST_F()
99 auto op2 = model.addOperand(&kTypeTensorFloat); in TEST_F()
100 auto op3 = model.addOperand(&kTypeTensorFloatRank0); in TEST_F()
101 auto op4 = model.addOperand(&kTypeTensorFloat); in TEST_F()
102 auto op5 = model.addOperand(&kTypeTensorFloat); in TEST_F()
103 auto act = model.addConstantOperand(&kTypeInt32, kNoActivation); in TEST_F()
104 model.addOperation(ANEURALNETWORKS_ADD, {op1, op2, act}, {op3}); in TEST_F()
105 model.addOperation(ANEURALNETWORKS_ADD, {op3, op4, act}, {op5}); in TEST_F()
106 model.identifyInputsAndOutputs({op1, op2, op4}, {op5}); in TEST_F()
107 ASSERT_TRUE(model.isValid()); in TEST_F()
108 model.finish(); in TEST_F()
109 testAvailableSinceVersion(model, kVersionFeatureLevel3); in TEST_F()
134 WrapperModel model; in TEST_F() local
135 auto op1 = model.addOperand(&kTypeTensorFloat); in TEST_F()
136 auto op2 = model.addOperand(&kTypeTensorFloat); in TEST_F()
137 auto op3 = model.addOperand(&kTypeTensorFloat); in TEST_F()
138 auto act = model.addConstantOperand(&kTypeInt32, kNoActivation); in TEST_F()
139 model.setOperandValueFromMemory(op2, &memory, 0, sizeof(float)); in TEST_F()
140 model.addOperation(ANEURALNETWORKS_ADD, {op1, op2, act}, {op3}); in TEST_F()
141 model.identifyInputsAndOutputs({op1}, {op3}); in TEST_F()
142 ASSERT_TRUE(model.isValid()); in TEST_F()
143 model.finish(); in TEST_F()
144 testAvailableSinceVersion(model, kVersionFeatureLevel3); in TEST_F()
223 generated_tests::GeneratedModel model; in TEST_P() local
224 generated_tests::createModel(testModel, &model); in TEST_P()
225 ASSERT_TRUE(model.isValid()); in TEST_P()
226 model.finish(); in TEST_P()
230 testAvailableSinceVersion(model, kVersionFeatureLevel1); in TEST_P()
233 testAvailableSinceVersion(model, kVersionFeatureLevel2); in TEST_P()
236 testAvailableSinceVersion(model, kVersionFeatureLevel3); in TEST_P()
239 testAvailableSinceVersion(model, kVersionFeatureLevel4); in TEST_P()
242 testAvailableSinceVersion(model, kVersionFeatureLevel5); in TEST_P()
245 testAvailableSinceVersion(model, kVersionFeatureLevel6); in TEST_P()
248 testAvailableSinceVersion(model, kVersionFeatureLevel7); in TEST_P()