/hardware/interfaces/neuralnetworks/1.3/vts/functional/ |
D | CompilationCachingTests.cpp | 321 sp<IPreparedModel>* preparedModel = nullptr) { in saveModelToCache() argument 322 if (preparedModel != nullptr) *preparedModel = nullptr; in saveModelToCache() 336 if (preparedModel != nullptr) { in saveModelToCache() 337 *preparedModel = IPreparedModel::castFrom(preparedModelCallback->getPreparedModel()) in saveModelToCache() 368 sp<IPreparedModel>* preparedModel, ErrorStatus* status) { in prepareModelFromCache() argument 376 *preparedModel = nullptr; in prepareModelFromCache() 384 *preparedModel = IPreparedModel::castFrom(preparedModelCallback->getPreparedModel()) in prepareModelFromCache() 427 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local 439 preparedModel = nullptr; in TEST_P() 444 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P() [all …]
|
D | MemoryDomainTests.cpp | 252 sp<IPreparedModel> preparedModel; in createConvPreparedModel() local 253 createPreparedModel(kDevice, model, &preparedModel, /*reportSkipping=*/false); in createConvPreparedModel() 254 return preparedModel; in createConvPreparedModel() 260 sp<IPreparedModel> preparedModel; in createAddPreparedModel() local 261 createPreparedModel(kDevice, model, &preparedModel, /*reportSkipping=*/false); in createAddPreparedModel() 262 return preparedModel; in createAddPreparedModel() 365 auto preparedModel = createConvPreparedModel(kTestOperand); in TEST_P() local 366 if (preparedModel == nullptr) return; in TEST_P() 370 .preparedModels = {preparedModel}, in TEST_P() 405 auto preparedModel = createConvPreparedModel(kTestOperand); in TEST_P() local [all …]
|
D | VtsHalNeuralnetworks.cpp | 40 sp<IPreparedModel>* preparedModel, bool reportSkipping) { in createPreparedModel() argument 41 ASSERT_NE(nullptr, preparedModel); in createPreparedModel() 42 *preparedModel = nullptr; in createPreparedModel() 66 *preparedModel = getPreparedModel_1_3(preparedModelCallback); in createPreparedModel() 76 ASSERT_EQ(nullptr, preparedModel->get()); in createPreparedModel() 89 ASSERT_NE(nullptr, preparedModel->get()); in createPreparedModel() 128 void validateRequest(const sp<IPreparedModel>& preparedModel, const Request& request); 130 void validateRequestFailure(const sp<IPreparedModel>& preparedModel, const Request& request); 132 void validateBurst(const sp<IPreparedModel>& preparedModel, const V1_0::Request& request); 135 void validateExecuteFenced(const sp<IPreparedModel>& preparedModel, const Request& request) { in validateExecuteFenced() argument [all …]
|
D | ValidateRequest.cpp | 48 static void validate(const sp<IPreparedModel>& preparedModel, const std::string& message, in validate() argument 69 preparedModel->execute_1_3(request, measure, {}, {}, executionCallback); in validate() 86 Return<void> executeStatus = preparedModel->executeSynchronously_1_3( in validate() 107 android::nn::ExecutionBurstController::create(preparedModel, in validate() 142 preparedModel->executeFenced(request, {}, MeasureTiming::NO, {}, {}, {}, in validate() 155 static void removeInputTest(const sp<IPreparedModel>& preparedModel, const Request& request) { in removeInputTest() argument 158 validate(preparedModel, message, request, in removeInputTest() 165 static void removeOutputTest(const sp<IPreparedModel>& preparedModel, const Request& request) { in removeOutputTest() argument 168 validate(preparedModel, message, request, in removeOutputTest() 175 void validateRequest(const sp<IPreparedModel>& preparedModel, const Request& request) { in validateRequest() argument [all …]
|
D | QualityOfServiceTests.cpp | 59 std::function<MaybeResults(const sp<IPreparedModel>& preparedModel, const Request& request, 116 const sp<IPreparedModel> preparedModel = in runPrepareModelTest() local 127 ASSERT_EQ(nullptr, preparedModel.get()); in runPrepareModelTest() 152 ASSERT_EQ(prepareReturnStatus == ErrorStatus::NONE, preparedModel.get() != nullptr); in runPrepareModelTest() 170 static MaybeResults executeAsynchronously(const sp<IPreparedModel>& preparedModel, in executeAsynchronously() argument 178 Return<ErrorStatus> ret = preparedModel->execute_1_3(request, measure, deadline, {}, callback); in executeAsynchronously() 193 static MaybeResults executeSynchronously(const sp<IPreparedModel>& preparedModel, in executeSynchronously() argument 208 preparedModel->executeSynchronously_1_3(request, measure, deadline, {}, cb); in executeSynchronously() 216 void runExecutionTest(const sp<IPreparedModel>& preparedModel, const TestModel& testModel, in runExecutionTest() argument 223 const auto results = execute(preparedModel, request, deadline); in runExecutionTest() [all …]
|
D | Callbacks.cpp | 36 const sp<V1_0::IPreparedModel>& preparedModel) { in notifyInternal() argument 47 mPreparedModel = preparedModel; in notifyInternal() 56 const sp<V1_0::IPreparedModel>& preparedModel) { in notify() argument 57 return notifyInternal(static_cast<ErrorStatus>(errorStatus), preparedModel); in notify() 61 const sp<V1_2::IPreparedModel>& preparedModel) { in notify_1_2() argument 62 return notifyInternal(static_cast<ErrorStatus>(errorStatus), preparedModel); in notify_1_2() 66 const sp<V1_3::IPreparedModel>& preparedModel) { in notify_1_3() argument 67 return notifyInternal(errorStatus, preparedModel); in notify_1_3()
|
D | ValidateBurst.cpp | 62 static void createBurst(const sp<IPreparedModel>& preparedModel, const sp<IBurstCallback>& callback, in createBurst() argument 67 ASSERT_NE(nullptr, preparedModel.get()); in createBurst() 85 const Return<void> ret = preparedModel->configureExecutionBurst( in createBurst() 103 const sp<IPreparedModel>& preparedModel, size_t resultChannelLength, in createBurstWithResultChannelLength() argument 105 ASSERT_NE(nullptr, preparedModel.get()); in createBurstWithResultChannelLength() 113 ASSERT_NO_FATAL_FAILURE(createBurst(preparedModel, callback, &sender, &receiver, &context, in createBurstWithResultChannelLength() 247 static void validateBurstSerialization(const sp<IPreparedModel>& preparedModel, in validateBurstSerialization() argument 254 ASSERT_NO_FATAL_FAILURE(createBurst(preparedModel, callback, &sender, &receiver, &context)); in validateBurstSerialization() 283 static void validateBurstFmqLength(const sp<IPreparedModel>& preparedModel, in validateBurstFmqLength() argument 288 preparedModel, kExecutionBurstChannelLength, &controllerRegular)); in validateBurstFmqLength() [all …]
|
D | GeneratedTestHarness.cpp | 106 DeviceMemoryAllocator(const sp<IDevice>& device, const sp<IPreparedModel>& preparedModel, in DeviceMemoryAllocator() argument 108 : kDevice(device), kPreparedModel(preparedModel), kTestModel(testModel) {} in DeviceMemoryAllocator() 339 ExecutionContextV1_3(sp<IDevice> device, sp<IPreparedModel> preparedModel) in ExecutionContextV1_3() argument 340 : kDevice(std::move(device)), kPreparedModel(std::move(preparedModel)) {} in ExecutionContextV1_3() 520 static Return<ErrorStatus> ExecutePreparedModel(const sp<IPreparedModel>& preparedModel, in ExecutePreparedModel() argument 524 return preparedModel->execute_1_3(request, measure, {}, loopTimeoutDuration, callback); in ExecutePreparedModel() 526 static Return<ErrorStatus> ExecutePreparedModel(const sp<IPreparedModel>& preparedModel, in ExecutePreparedModel() argument 532 Return<void> ret = preparedModel->executeSynchronously_1_3( in ExecutePreparedModel() 546 const sp<IPreparedModel>& preparedModel) { in CreateBurst() argument 547 return android::nn::ExecutionBurstController::create(preparedModel, in CreateBurst() [all …]
|
D | GeneratedTestHarness.h | 62 void PrepareModel(const sp<IDevice>& device, const Model& model, sp<IPreparedModel>* preparedModel); 81 void EvaluatePreparedModel(const sp<IDevice>& device, const sp<IPreparedModel>& preparedModel,
|
/hardware/interfaces/neuralnetworks/1.2/vts/functional/ |
D | CompilationCachingTests.cpp | 318 sp<IPreparedModel>* preparedModel = nullptr) { in saveModelToCache() argument 319 if (preparedModel != nullptr) *preparedModel = nullptr; in saveModelToCache() 333 if (preparedModel != nullptr) { in saveModelToCache() 334 *preparedModel = IPreparedModel::castFrom(preparedModelCallback->getPreparedModel()) in saveModelToCache() 365 sp<IPreparedModel>* preparedModel, ErrorStatus* status) { in prepareModelFromCache() argument 373 *preparedModel = nullptr; in prepareModelFromCache() 381 *preparedModel = IPreparedModel::castFrom(preparedModelCallback->getPreparedModel()) in prepareModelFromCache() 424 sp<IPreparedModel> preparedModel = nullptr; in TEST_P() local 436 preparedModel = nullptr; in TEST_P() 441 prepareModelFromCache(modelCache, dataCache, &preparedModel, &status); in TEST_P() [all …]
|
D | VtsHalNeuralnetworks.cpp | 39 sp<IPreparedModel>* preparedModel) { in createPreparedModel() argument 40 ASSERT_NE(nullptr, preparedModel); in createPreparedModel() 41 *preparedModel = nullptr; in createPreparedModel() 65 *preparedModel = getPreparedModel_1_2(preparedModelCallback); in createPreparedModel() 75 ASSERT_EQ(nullptr, preparedModel->get()); in createPreparedModel() 84 ASSERT_NE(nullptr, preparedModel->get()); in createPreparedModel() 123 void validateRequest(const sp<IPreparedModel>& preparedModel, const V1_0::Request& request); 125 void validateRequestFailure(const sp<IPreparedModel>& preparedModel, const V1_0::Request& request); 127 void validateBurst(const sp<IPreparedModel>& preparedModel, const V1_0::Request& request); 133 sp<IPreparedModel> preparedModel; in validateEverything() local [all …]
|
D | ValidateRequest.cpp | 44 static void validate(const sp<IPreparedModel>& preparedModel, const std::string& message, in validate() argument 65 preparedModel->execute_1_2(request, measure, executionCallback); in validate() 82 Return<void> executeStatus = preparedModel->executeSynchronously( in validate() 99 android::nn::ExecutionBurstController::create(preparedModel, in validate() 133 static void removeInputTest(const sp<IPreparedModel>& preparedModel, const Request& request) { in removeInputTest() argument 136 validate(preparedModel, message, request, in removeInputTest() 143 static void removeOutputTest(const sp<IPreparedModel>& preparedModel, const Request& request) { in removeOutputTest() argument 146 validate(preparedModel, message, request, in removeOutputTest() 153 void validateRequest(const sp<IPreparedModel>& preparedModel, const Request& request) { in validateRequest() argument 154 removeInputTest(preparedModel, request); in validateRequest() [all …]
|
D | ValidateBurst.cpp | 57 static void createBurst(const sp<IPreparedModel>& preparedModel, const sp<IBurstCallback>& callback, in createBurst() argument 62 ASSERT_NE(nullptr, preparedModel.get()); in createBurst() 80 const Return<void> ret = preparedModel->configureExecutionBurst( in createBurst() 97 const sp<IPreparedModel>& preparedModel, size_t resultChannelLength, in createBurstWithResultChannelLength() argument 99 ASSERT_NE(nullptr, preparedModel.get()); in createBurstWithResultChannelLength() 107 ASSERT_NO_FATAL_FAILURE(createBurst(preparedModel, callback, &sender, &receiver, &context, in createBurstWithResultChannelLength() 241 static void validateBurstSerialization(const sp<IPreparedModel>& preparedModel, in validateBurstSerialization() argument 248 ASSERT_NO_FATAL_FAILURE(createBurst(preparedModel, callback, &sender, &receiver, &context)); in validateBurstSerialization() 277 static void validateBurstFmqLength(const sp<IPreparedModel>& preparedModel, in validateBurstFmqLength() argument 282 preparedModel, kExecutionBurstChannelLength, &controllerRegular)); in validateBurstFmqLength() [all …]
|
D | GeneratedTestHarness.cpp | 183 static Return<ErrorStatus> ExecutePreparedModel(const sp<IPreparedModel>& preparedModel, in ExecutePreparedModel() argument 186 return preparedModel->execute_1_2(request, measure, callback); in ExecutePreparedModel() 188 static Return<ErrorStatus> ExecutePreparedModel(const sp<IPreparedModel>& preparedModel, in ExecutePreparedModel() argument 193 Return<void> ret = preparedModel->executeSynchronously( in ExecutePreparedModel() 207 const sp<IPreparedModel>& preparedModel) { in CreateBurst() argument 208 return android::nn::ExecutionBurstController::create(preparedModel, in CreateBurst() 212 void EvaluatePreparedModel(const sp<IPreparedModel>& preparedModel, const TestModel& testModel, in EvaluatePreparedModel() argument 236 preparedModel, request, testConfig.measureTiming, executionCallback); in EvaluatePreparedModel() 253 preparedModel, request, testConfig.measureTiming, &outputShapes, &timing); in EvaluatePreparedModel() 264 CreateBurst(preparedModel); in EvaluatePreparedModel() [all …]
|
D | Callbacks.cpp | 35 const sp<V1_0::IPreparedModel>& preparedModel) { in notify() argument 46 mPreparedModel = preparedModel; in notify() 55 const sp<V1_2::IPreparedModel>& preparedModel) { in notify_1_2() argument 56 return notify(errorStatus, preparedModel); in notify_1_2()
|
D | GeneratedTestHarness.h | 62 void PrepareModel(const sp<IDevice>& device, const Model& model, sp<IPreparedModel>* preparedModel); 64 void EvaluatePreparedModel(const sp<IPreparedModel>& preparedModel,
|
/hardware/interfaces/neuralnetworks/1.1/vts/functional/ |
D | ValidateRequest.cpp | 38 static void validate(const sp<IPreparedModel>& preparedModel, const std::string& message, in validate() argument 45 Return<ErrorStatus> executeLaunchStatus = preparedModel->execute(request, executionCallback); in validate() 56 static void removeInputTest(const sp<IPreparedModel>& preparedModel, const Request& request) { in removeInputTest() argument 59 validate(preparedModel, message, request, in removeInputTest() 66 static void removeOutputTest(const sp<IPreparedModel>& preparedModel, const Request& request) { in removeOutputTest() argument 69 validate(preparedModel, message, request, in removeOutputTest() 76 void validateRequest(const sp<IPreparedModel>& preparedModel, const Request& request) { in validateRequest() argument 77 removeInputTest(preparedModel, request); in validateRequest() 78 removeOutputTest(preparedModel, request); in validateRequest()
|
D | VtsHalNeuralnetworks.cpp | 37 sp<IPreparedModel>* preparedModel) { in createPreparedModel() argument 38 ASSERT_NE(nullptr, preparedModel); in createPreparedModel() 39 *preparedModel = nullptr; in createPreparedModel() 62 *preparedModel = preparedModelCallback->getPreparedModel(); in createPreparedModel() 72 ASSERT_EQ(nullptr, preparedModel->get()); in createPreparedModel() 81 ASSERT_NE(nullptr, preparedModel->get()); in createPreparedModel() 120 void validateRequest(const sp<V1_0::IPreparedModel>& preparedModel, const V1_0::Request& request); 126 sp<IPreparedModel> preparedModel; in validateEverything() local 127 createPreparedModel(device, model, &preparedModel); in validateEverything() 128 if (preparedModel == nullptr) return; in validateEverything() [all …]
|
D | GeneratedTestHarness.cpp | 141 sp<IPreparedModel> preparedModel; in Execute() local 142 createPreparedModel(device, model, &preparedModel); in Execute() 143 if (preparedModel == nullptr) return; in Execute() 147 Return<ErrorStatus> executionLaunchStatus = preparedModel->execute(request, executionCallback); in Execute()
|
/hardware/interfaces/neuralnetworks/1.0/vts/functional/ |
D | ValidateRequest.cpp | 34 static void validate(const sp<IPreparedModel>& preparedModel, const std::string& message, in validate() argument 41 Return<ErrorStatus> executeLaunchStatus = preparedModel->execute(request, executionCallback); in validate() 72 static void removeInputTest(const sp<IPreparedModel>& preparedModel, const Request& request) { in removeInputTest() argument 75 validate(preparedModel, message, request, in removeInputTest() 82 static void removeOutputTest(const sp<IPreparedModel>& preparedModel, const Request& request) { in removeOutputTest() argument 85 validate(preparedModel, message, request, in removeOutputTest() 92 void validateRequest(const sp<IPreparedModel>& preparedModel, const Request& request) { in validateRequest() argument 93 removeInputTest(preparedModel, request); in validateRequest() 94 removeOutputTest(preparedModel, request); in validateRequest()
|
D | VtsHalNeuralnetworks.cpp | 34 sp<IPreparedModel>* preparedModel) { in createPreparedModel() argument 35 ASSERT_NE(nullptr, preparedModel); in createPreparedModel() 36 *preparedModel = nullptr; in createPreparedModel() 59 *preparedModel = preparedModelCallback->getPreparedModel(); in createPreparedModel() 69 ASSERT_EQ(nullptr, preparedModel->get()); in createPreparedModel() 78 ASSERT_NE(nullptr, preparedModel->get()); in createPreparedModel() 117 void validateRequest(const sp<IPreparedModel>& preparedModel, const Request& request); 123 sp<IPreparedModel> preparedModel; in validateEverything() local 124 createPreparedModel(device, model, &preparedModel); in validateEverything() 125 if (preparedModel == nullptr) return; in validateEverything() [all …]
|
D | Callbacks.cpp | 28 const sp<IPreparedModel>& preparedModel) { in notify() argument 39 mPreparedModel = preparedModel; in notify()
|
D | GeneratedTestHarness.cpp | 133 sp<IPreparedModel> preparedModel; in Execute() local 134 createPreparedModel(device, model, &preparedModel); in Execute() 135 if (preparedModel == nullptr) return; in Execute() 139 Return<ErrorStatus> executionLaunchStatus = preparedModel->execute(request, executionCallback); in Execute()
|
/hardware/interfaces/neuralnetworks/1.3/vts/functional/include/1.3/ |
D | Callbacks.h | 91 const sp<V1_0::IPreparedModel>& preparedModel) override; 117 const sp<V1_2::IPreparedModel>& preparedModel) override; 143 const sp<V1_3::IPreparedModel>& preparedModel) override; 179 Return<void> notifyInternal(ErrorStatus status, const sp<V1_0::IPreparedModel>& preparedModel);
|
/hardware/interfaces/neuralnetworks/1.2/vts/functional/include/1.2/ |
D | Callbacks.h | 89 const sp<V1_0::IPreparedModel>& preparedModel) override; 115 const sp<V1_2::IPreparedModel>& preparedModel) override;
|