/hardware/interfaces/neuralnetworks/1.0/vts/functional/ |
D | GeneratedTestHarness.cpp | 43 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 …]
|
D | Utils.cpp | 102 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()
|
D | GeneratedTestHarness.h | 56 Model createModel(const test_helper::TestModel& testModel);
|
/hardware/interfaces/neuralnetworks/1.1/vts/functional/ |
D | GeneratedTestHarness.cpp | 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() [all …]
|
D | GeneratedTestHarness.h | 56 Model createModel(const test_helper::TestModel& testModel);
|
/hardware/interfaces/neuralnetworks/1.2/vts/functional/ |
D | GeneratedTestHarness.cpp | 76 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 …]
|
D | CompilationCachingTests.cpp | 423 const TestModel& testModel = createTestModel(); in TEST_P() local 424 const Model model = createModel(testModel); in TEST_P() 458 EvaluatePreparedModel(preparedModel, testModel, in TEST_P() 464 const TestModel& testModel = createTestModel(); in TEST_P() local 465 const Model model = createModel(testModel); in TEST_P() 521 EvaluatePreparedModel(preparedModel, testModel, in TEST_P() 527 const TestModel& testModel = createTestModel(); in TEST_P() local 528 const Model model = createModel(testModel); in TEST_P() 543 EvaluatePreparedModel(preparedModel, testModel, in TEST_P() 568 EvaluatePreparedModel(preparedModel, testModel, in TEST_P() [all …]
|
D | GeneratedTestHarness.h | 60 Model createModel(const test_helper::TestModel& testModel); 65 const test_helper::TestModel& testModel, bool testDynamicOutputShape);
|
/hardware/interfaces/neuralnetworks/1.3/vts/functional/ |
D | GeneratedTestHarness.cpp | 107 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 …]
|
D | QualityOfServiceTests.cpp | 216 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 …]
|
D | CompilationCachingTests.cpp | 426 const TestModel& testModel = createTestModel(); in TEST_P() local 427 const Model model = createModel(testModel); in TEST_P() 461 EvaluatePreparedModel(kDevice, preparedModel, testModel, /*testKind=*/TestKind::GENERAL); in TEST_P() 466 const TestModel& testModel = createTestModel(); in TEST_P() local 467 const Model model = createModel(testModel); in TEST_P() 523 EvaluatePreparedModel(kDevice, preparedModel, testModel, /*testKind=*/TestKind::GENERAL); in TEST_P() 528 const TestModel& testModel = createTestModel(); in TEST_P() local 529 const Model model = createModel(testModel); in TEST_P() 544 EvaluatePreparedModel(kDevice, preparedModel, testModel, /*testKind=*/TestKind::GENERAL); in TEST_P() 568 EvaluatePreparedModel(kDevice, preparedModel, testModel, /*testKind=*/TestKind::GENERAL); in TEST_P() [all …]
|
D | GeneratedTestHarness.h | 60 Model createModel(const test_helper::TestModel& testModel); 82 const test_helper::TestModel& testModel, TestKind testKind);
|
D | MemoryDomainTests.cpp | 67 void createDummyData(TestModel* testModel) { in createDummyData() argument 68 for (auto& operand : testModel->main.operands) { in createDummyData() 252 const TestModel testModel = createConvModel(testOperand, numOperations); in createConvPreparedModel() local 253 const Model model = createModel(testModel); in createConvPreparedModel() 260 const TestModel testModel = createSingleAddModel(testOperand); in createAddPreparedModel() local 261 const Model model = createModel(testModel); in createAddPreparedModel()
|
/hardware/interfaces/neuralnetworks/aidl/vts/functional/ |
D | GeneratedTestHarness.cpp | 129 const TestModel& testModel) in DeviceMemoryAllocator() argument 130 : kDevice(device), kPreparedModel(preparedModel), kTestModel(testModel) {} in DeviceMemoryAllocator() 296 Model createModel(const TestModel& testModel) { in createModel() argument 302 Subgraph mainSubgraph = createSubgraph(testModel.main, &constCopySize, &constCopies, in createModel() 304 std::vector<Subgraph> refSubgraphs(testModel.referenced.size()); in createModel() 305 std::transform(testModel.referenced.begin(), testModel.referenced.end(), refSubgraphs.begin(), in createModel() 341 .relaxComputationFloat32toFloat16 = testModel.isRelaxed}; in createModel() 344 static bool isOutputSizeGreaterThanOne(const TestModel& testModel, uint32_t index) { in isOutputSizeGreaterThanOne() argument 345 const auto byteSize = testModel.main.operands[testModel.main.outputIndexes[index]].data.size(); in isOutputSizeGreaterThanOne() 370 std::optional<Request> createRequest(const TestModel& testModel, MemoryType memoryType); [all …]
|
D | QualityOfServiceTests.cpp | 223 const TestModel& testModel, const Request& request, in runExecutionTest() argument 258 outputShapes.size() == testModel.main.outputIndexes.size()); in runExecutionTest() 264 utils::toSigned(testModel.main.operands[testModel.main.outputIndexes[i]].dimensions) in runExecutionTest() 275 checkResults(testModel, outputs); in runExecutionTest() 280 const TestModel& testModel, const Request& request, in runExecutionTests() argument 284 runExecutionTest(preparedModel, testModel, request, context, synchronous, in runExecutionTests() 290 void runTests(const std::shared_ptr<IDevice>& device, const TestModel& testModel) { in runTests() argument 292 const Model model = createModel(testModel); in runTests() 304 const Request request = context.createRequest(testModel); in runTests() 305 runExecutionTests(preparedModel, testModel, request, context); in runTests() [all …]
|
D | Utils.cpp | 197 Request ExecutionContext::createRequest(const TestModel& testModel, MemoryType memoryType) { in createRequest() argument 201 std::vector<RequestArgument> inputs(testModel.main.inputIndexes.size()); in createRequest() 203 for (uint32_t i = 0; i < testModel.main.inputIndexes.size(); i++) { in createRequest() 204 const auto& op = testModel.main.operands[testModel.main.inputIndexes[i]]; in createRequest() 218 std::vector<RequestArgument> outputs(testModel.main.outputIndexes.size()); in createRequest() 220 for (uint32_t i = 0; i < testModel.main.outputIndexes.size(); i++) { in createRequest() 221 const auto& op = testModel.main.operands[testModel.main.outputIndexes[i]]; in createRequest() 262 for (uint32_t i = 0; i < testModel.main.inputIndexes.size(); i++) { in createRequest() 263 const auto& op = testModel.main.operands[testModel.main.inputIndexes[i]]; in createRequest()
|
D | CompilationCachingTests.cpp | 421 const Model* model, const TestModel& testModel) { in verifyModelPreparationBehaviour() argument 444 EvaluatePreparedModel(kDevice, preparedModel, testModel, in verifyModelPreparationBehaviour() 486 const TestModel& testModel = createTestModel(); in TEST_P() local 487 const Model model = createModel(testModel); in TEST_P() 522 EvaluatePreparedModel(kDevice, preparedModel, testModel, /*testKind=*/TestKind::GENERAL); in TEST_P() 527 const TestModel& testModel = createTestModel(); in TEST_P() local 528 const Model model = createModel(testModel); in TEST_P() 583 EvaluatePreparedModel(kDevice, preparedModel, testModel, /*testKind=*/TestKind::GENERAL); in TEST_P() 588 const TestModel& testModel = createTestModel(); in TEST_P() local 589 const Model model = createModel(testModel); in TEST_P() [all …]
|
D | GeneratedTestHarness.h | 61 Model createModel(const test_helper::TestModel& testModel); 85 const test_helper::TestModel& testModel, TestKind testKind);
|
D | Utils.h | 128 Request createRequest(const test_helper::TestModel& testModel,
|
D | MemoryDomainTests.cpp | 69 void createDummyData(TestModel* testModel) { in createDummyData() argument 70 for (auto& operand : testModel->main.operands) { in createDummyData() 270 const TestModel testModel = createConvModel(testOperand, numOperations); in createConvPreparedModel() local 271 const Model model = createModel(testModel); in createConvPreparedModel() 278 const TestModel testModel = createSingleAddModel(testOperand); in createAddPreparedModel() local 279 const Model model = createModel(testModel); in createAddPreparedModel()
|
/hardware/interfaces/neuralnetworks/1.0/vts/functional/include/1.0/ |
D | Utils.h | 92 V1_0::Request createRequest(const test_helper::TestModel& testModel,
|