Lines Matching refs:model

93     WrapperModel model;  in TEST_F()  local
94 auto op1 = model.addOperand(&kTypeTensorFloatRank0); in TEST_F()
95 auto op2 = model.addOperand(&kTypeTensorFloatRank0); in TEST_F()
96 auto op3 = model.addOperand(&kTypeTensorFloat); in TEST_F()
97 auto act = model.addConstantOperand(&kTypeInt32, kNoActivation); in TEST_F()
98 model.addOperation(ANEURALNETWORKS_ADD, {op1, op2, act}, {op3}); in TEST_F()
99 model.identifyInputsAndOutputs({op1, op2}, {op3}); in TEST_F()
100 ASSERT_TRUE(model.isValid()); in TEST_F()
101 model.finish(); in TEST_F()
102 testAvailableSinceV1_2(model); in TEST_F()
107 WrapperModel model; in TEST_F() local
108 auto op1 = model.addOperand(&kTypeTensorFloat); in TEST_F()
109 auto op2 = model.addOperand(&kTypeTensorFloat); in TEST_F()
110 auto op3 = model.addOperand(&kTypeTensorFloatRank0); in TEST_F()
111 auto act = model.addConstantOperand(&kTypeInt32, kNoActivation); in TEST_F()
112 model.addOperation(ANEURALNETWORKS_ADD, {op1, op2, act}, {op3}); in TEST_F()
113 model.identifyInputsAndOutputs({op1, op2}, {op3}); in TEST_F()
114 ASSERT_TRUE(model.isValid()); in TEST_F()
115 model.finish(); in TEST_F()
116 testAvailableSinceV1_2(model); in TEST_F()
121 WrapperModel model; in TEST_F() local
122 auto op1 = model.addOperand(&kTypeTensorFloat); in TEST_F()
123 auto op2 = model.addOperand(&kTypeTensorFloat); in TEST_F()
124 auto op3 = model.addOperand(&kTypeTensorFloatRank0); in TEST_F()
125 auto op4 = model.addOperand(&kTypeTensorFloat); in TEST_F()
126 auto op5 = model.addOperand(&kTypeTensorFloat); in TEST_F()
127 auto act = model.addConstantOperand(&kTypeInt32, kNoActivation); in TEST_F()
128 model.addOperation(ANEURALNETWORKS_ADD, {op1, op2, act}, {op3}); in TEST_F()
129 model.addOperation(ANEURALNETWORKS_ADD, {op3, op4, act}, {op5}); in TEST_F()
130 model.identifyInputsAndOutputs({op1, op2, op4}, {op5}); in TEST_F()
131 ASSERT_TRUE(model.isValid()); in TEST_F()
132 model.finish(); in TEST_F()
133 testAvailableSinceV1_2(model); in TEST_F()
152 WrapperModel model; in TEST_F() local
153 auto op1 = model.addOperand(&kTypeTensorFloat); in TEST_F()
154 auto op2 = model.addOperand(&kTypeTensorFloat); in TEST_F()
155 auto op3 = model.addOperand(&kTypeTensorFloat); in TEST_F()
156 auto act = model.addConstantOperand(&kTypeInt32, kNoActivation); in TEST_F()
157 model.setOperandValueFromMemory(op2, &memory, 0, sizeof(float)); in TEST_F()
158 model.addOperation(ANEURALNETWORKS_ADD, {op1, op2, act}, {op3}); in TEST_F()
159 model.identifyInputsAndOutputs({op1}, {op3}); in TEST_F()
160 ASSERT_TRUE(model.isValid()); in TEST_F()
161 model.finish(); in TEST_F()
162 testAvailableSinceV1_2(model); in TEST_F()
214 generated_tests::GeneratedModel model; in TEST_P() local
215 generated_tests::createModel(testModel, &model); in TEST_P()
216 ASSERT_TRUE(model.isValid()); in TEST_P()
217 model.finish(); in TEST_P()
220 testAvailableSinceV1_0(model); in TEST_P()
223 testAvailableSinceV1_1(model); in TEST_P()
226 testAvailableSinceV1_2(model); in TEST_P()
229 testAvailableSinceV1_3(model); in TEST_P()