Home
last modified time | relevance | path

Searched refs:testModel (Results 1 – 14 of 14) sorted by relevance

/hardware/interfaces/neuralnetworks/1.0/vts/functional/
DGeneratedTestHarness.cpp43 Model createModel(const TestModel& testModel) { in createModel() argument
45 CHECK_EQ(testModel.referenced.size(), 0u); // Not supported in 1.0. in createModel()
46 hidl_vec<Operand> operands(testModel.main.operands.size()); in createModel()
48 for (uint32_t i = 0; i < testModel.main.operands.size(); i++) { in createModel()
49 const auto& op = testModel.main.operands[i]; in createModel()
74 hidl_vec<Operation> operations(testModel.main.operations.size()); in createModel()
75 std::transform(testModel.main.operations.begin(), testModel.main.operations.end(), in createModel()
84 for (uint32_t i = 0; i < testModel.main.operands.size(); i++) { in createModel()
85 const auto& op = testModel.main.operands[i]; in createModel()
106 for (uint32_t i = 0; i < testModel.main.operands.size(); i++) { in createModel()
[all …]
DUtils.cpp102 Request ExecutionContext::createRequest(const TestModel& testModel, MemoryType memoryType) { in createRequest() argument
106 hidl_vec<RequestArgument> inputs(testModel.main.inputIndexes.size()); in createRequest()
108 for (uint32_t i = 0; i < testModel.main.inputIndexes.size(); i++) { in createRequest()
109 const auto& op = testModel.main.operands[testModel.main.inputIndexes[i]]; in createRequest()
123 hidl_vec<RequestArgument> outputs(testModel.main.outputIndexes.size()); in createRequest()
125 for (uint32_t i = 0; i < testModel.main.outputIndexes.size(); i++) { in createRequest()
126 const auto& op = testModel.main.operands[testModel.main.outputIndexes[i]]; in createRequest()
157 for (uint32_t i = 0; i < testModel.main.inputIndexes.size(); i++) { in createRequest()
158 const auto& op = testModel.main.operands[testModel.main.inputIndexes[i]]; in createRequest()
DGeneratedTestHarness.h56 Model createModel(const test_helper::TestModel& testModel);
/hardware/interfaces/neuralnetworks/1.1/vts/functional/
DGeneratedTestHarness.cpp50 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()
[all …]
DGeneratedTestHarness.h56 Model createModel(const test_helper::TestModel& testModel);
/hardware/interfaces/neuralnetworks/1.2/vts/functional/
DGeneratedTestHarness.cpp76 Model createModel(const TestModel& testModel) { in createModel() argument
78 CHECK_EQ(testModel.referenced.size(), 0u); // Not supported in 1.1. in createModel()
79 hidl_vec<Operand> operands(testModel.main.operands.size()); in createModel()
81 for (uint32_t i = 0; i < testModel.main.operands.size(); i++) { in createModel()
82 const auto& op = testModel.main.operands[i]; in createModel()
114 hidl_vec<Operation> operations(testModel.main.operations.size()); in createModel()
115 std::transform(testModel.main.operations.begin(), testModel.main.operations.end(), in createModel()
124 for (uint32_t i = 0; i < testModel.main.operands.size(); i++) { in createModel()
125 const auto& op = testModel.main.operands[i]; in createModel()
146 for (uint32_t i = 0; i < testModel.main.operands.size(); i++) { in createModel()
[all …]
DCompilationCachingTests.cpp421 const TestModel& testModel = createTestModel(); in TEST_P() local
422 const Model model = createModel(testModel); in TEST_P()
456 EvaluatePreparedModel(preparedModel, testModel, in TEST_P()
462 const TestModel& testModel = createTestModel(); in TEST_P() local
463 const Model model = createModel(testModel); in TEST_P()
519 EvaluatePreparedModel(preparedModel, testModel, in TEST_P()
525 const TestModel& testModel = createTestModel(); in TEST_P() local
526 const Model model = createModel(testModel); in TEST_P()
541 EvaluatePreparedModel(preparedModel, testModel, in TEST_P()
566 EvaluatePreparedModel(preparedModel, testModel, in TEST_P()
[all …]
DGeneratedTestHarness.h60 Model createModel(const test_helper::TestModel& testModel);
65 const test_helper::TestModel& testModel, bool testDynamicOutputShape);
/hardware/interfaces/neuralnetworks/1.3/vts/functional/
DGeneratedTestHarness.cpp107 const TestModel& testModel) in DeviceMemoryAllocator() argument
108 : kDevice(device), kPreparedModel(preparedModel), kTestModel(testModel) {} in DeviceMemoryAllocator()
276 Model createModel(const TestModel& testModel) { in createModel() argument
282 Subgraph mainSubgraph = createSubgraph(testModel.main, &constCopySize, &constCopies, in createModel()
284 hidl_vec<Subgraph> refSubgraphs(testModel.referenced.size()); in createModel()
285 std::transform(testModel.referenced.begin(), testModel.referenced.end(), refSubgraphs.begin(), in createModel()
316 .relaxComputationFloat32toFloat16 = testModel.isRelaxed}; in createModel()
319 static bool isOutputSizeGreaterThanOne(const TestModel& testModel, uint32_t index) { in isOutputSizeGreaterThanOne() argument
320 const auto byteSize = testModel.main.operands[testModel.main.outputIndexes[index]].data.size(); in isOutputSizeGreaterThanOne()
342 std::optional<Request> createRequest(const TestModel& testModel, MemoryType memoryType);
[all …]
DQualityOfServiceTests.cpp216 void runExecutionTest(const sp<IPreparedModel>& preparedModel, const TestModel& testModel, in runExecutionTest() argument
252 outputShapes.size() == testModel.main.outputIndexes.size()); in runExecutionTest()
257 const auto& expect = testModel.main.operands[testModel.main.outputIndexes[i]].dimensions; in runExecutionTest()
269 checkResults(testModel, outputs); in runExecutionTest()
273 void runExecutionTests(const sp<IPreparedModel>& preparedModel, const TestModel& testModel, in runExecutionTests() argument
277 runExecutionTest(preparedModel, testModel, request, context, synchronous, in runExecutionTests()
283 void runTests(const sp<IDevice>& device, const TestModel& testModel) { in runTests() argument
285 const Model model = createModel(testModel); in runTests()
297 const Request request = nn::convertToV1_3(context.createRequest(testModel)); in runTests()
298 runExecutionTests(preparedModel, testModel, request, context); in runTests()
[all …]
DCompilationCachingTests.cpp424 const TestModel& testModel = createTestModel(); in TEST_P() local
425 const Model model = createModel(testModel); in TEST_P()
459 EvaluatePreparedModel(kDevice, preparedModel, testModel, /*testKind=*/TestKind::GENERAL); in TEST_P()
464 const TestModel& testModel = createTestModel(); in TEST_P() local
465 const Model model = createModel(testModel); in TEST_P()
521 EvaluatePreparedModel(kDevice, preparedModel, testModel, /*testKind=*/TestKind::GENERAL); in TEST_P()
526 const TestModel& testModel = createTestModel(); in TEST_P() local
527 const Model model = createModel(testModel); in TEST_P()
542 EvaluatePreparedModel(kDevice, preparedModel, testModel, /*testKind=*/TestKind::GENERAL); in TEST_P()
566 EvaluatePreparedModel(kDevice, preparedModel, testModel, /*testKind=*/TestKind::GENERAL); in TEST_P()
[all …]
DGeneratedTestHarness.h60 Model createModel(const test_helper::TestModel& testModel);
82 const test_helper::TestModel& testModel, TestKind testKind);
DMemoryDomainTests.cpp67 void createDummyData(TestModel* testModel) { in createDummyData() argument
68 for (auto& operand : testModel->main.operands) { in createDummyData()
250 const TestModel testModel = createConvModel(testOperand, numOperations); in createConvPreparedModel() local
251 const Model model = createModel(testModel); in createConvPreparedModel()
258 const TestModel testModel = createSingleAddModel(testOperand); in createAddPreparedModel() local
259 const Model model = createModel(testModel); in createAddPreparedModel()
/hardware/interfaces/neuralnetworks/1.0/vts/functional/include/1.0/
DUtils.h92 V1_0::Request createRequest(const test_helper::TestModel& testModel,