From 6b84616fd804ca04aaccedd227e02be68461a409 Mon Sep 17 00:00:00 2001 From: Xusong Wang Date: Wed, 15 Mar 2023 22:26:25 +0000 Subject: [PATCH] Fix VTS generated test with reusable execution. Fixes: 273819843 Bug: 273885128 Test: NNAPI VTS Change-Id: Ib684cea0686659a96afa6d181900edf7508da12b --- neuralnetworks/aidl/vts/functional/GeneratedTestHarness.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neuralnetworks/aidl/vts/functional/GeneratedTestHarness.cpp b/neuralnetworks/aidl/vts/functional/GeneratedTestHarness.cpp index dcf8451919..e344458064 100644 --- a/neuralnetworks/aidl/vts/functional/GeneratedTestHarness.cpp +++ b/neuralnetworks/aidl/vts/functional/GeneratedTestHarness.cpp @@ -736,8 +736,8 @@ void EvaluatePreparedModel(const std::shared_ptr& device, // If a sync fence is returned, try start another run waiting for the sync // fence. if (testConfig.reusable) { - ret = execution->executeFenced(waitFor, kNoDeadline, kNoDuration, - &executionResult); + // Nothing to do because at most one execution may occur on a reusable + // execution object at any given time. } else if (testConfig.useConfig) { ret = preparedModel->executeFencedWithConfig( request, waitFor,