Lines Matching refs:testModel
50 Model createModel(const TestModel& testModel) { in createModel() argument
52 CHECK_EQ(testModel.referenced.size(), 0u); // Not supported in 1.1. in createModel()
53 hidl_vec<Operand> operands(testModel.main.operands.size()); in createModel()
55 for (uint32_t i = 0; i < testModel.main.operands.size(); i++) { in createModel()
56 const auto& op = testModel.main.operands[i]; in createModel()
81 hidl_vec<Operation> operations(testModel.main.operations.size()); in createModel()
82 std::transform(testModel.main.operations.begin(), testModel.main.operations.end(), in createModel()
91 for (uint32_t i = 0; i < testModel.main.operands.size(); i++) { in createModel()
92 const auto& op = testModel.main.operands[i]; in createModel()
113 for (uint32_t i = 0; i < testModel.main.operands.size(); i++) { in createModel()
114 const auto& op = testModel.main.operands[i]; in createModel()
125 .inputIndexes = testModel.main.inputIndexes, in createModel()
126 .outputIndexes = testModel.main.outputIndexes, in createModel()
129 .relaxComputationFloat32toFloat16 = testModel.isRelaxed}; in createModel()
134 void Execute(const sp<IDevice>& device, const TestModel& testModel) { in Execute() argument
135 const Model model = createModel(testModel); in Execute()
138 const Request request = context.createRequest(testModel); in Execute()
159 checkResults(testModel, outputs); in Execute()
190 [](const TestModel& testModel) { return !testModel.expectFailure; }); in __anond21824970202() argument