NNAPI Burst object cleanup -- VTS update am: 60a2253bfb

am: 12b4bc7634

Change-Id: I6cdec360636481d02525ff04257ca2ce70eb88f5
This commit is contained in:
Michael Butler
2019-04-02 16:38:54 -07:00
committed by android-build-merger
2 changed files with 2 additions and 2 deletions

View File

@@ -127,7 +127,7 @@ static std::unique_ptr<::android::nn::ExecutionBurstController> CreateBurst(
}
static std::unique_ptr<::android::nn::ExecutionBurstController> CreateBurst(
const sp<V1_2::IPreparedModel>& preparedModel) {
return ::android::nn::createExecutionBurstController(preparedModel, /*blocking=*/true);
return ::android::nn::ExecutionBurstController::create(preparedModel, /*blocking=*/true);
}
enum class Executor { ASYNC, SYNC, BURST };
enum class OutputType { FULLY_SPECIFIED, UNSPECIFIED, INSUFFICIENT };

View File

@@ -156,7 +156,7 @@ static void validate(const sp<IPreparedModel>& preparedModel, const std::string&
// create burst
std::unique_ptr<::android::nn::ExecutionBurstController> burst =
::android::nn::createExecutionBurstController(preparedModel, /*blocking=*/true);
::android::nn::ExecutionBurstController::create(preparedModel, /*blocking=*/true);
ASSERT_NE(nullptr, burst.get());
// create memory keys