diff options
Diffstat (limited to 'neuralnetworks/1.2/utils/src/ExecutionBurstController.cpp')
-rw-r--r-- | neuralnetworks/1.2/utils/src/ExecutionBurstController.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/neuralnetworks/1.2/utils/src/ExecutionBurstController.cpp b/neuralnetworks/1.2/utils/src/ExecutionBurstController.cpp index eedf5916bc..7a17f257c2 100644 --- a/neuralnetworks/1.2/utils/src/ExecutionBurstController.cpp +++ b/neuralnetworks/1.2/utils/src/ExecutionBurstController.cpp @@ -276,7 +276,9 @@ ExecutionBurstController::OptionalCacheHold ExecutionBurstController::cacheMemor } nn::ExecutionResult<std::pair<std::vector<nn::OutputShape>, nn::Timing>> -ExecutionBurstController::execute(const nn::Request& request, nn::MeasureTiming measure) const { +ExecutionBurstController::execute(const nn::Request& request, nn::MeasureTiming measure, + const nn::OptionalTimePoint& deadline, + const nn::OptionalDuration& loopTimeoutDuration) const { // This is the first point when we know an execution is occurring, so begin to collect // systraces. Note that the first point we can begin collecting systraces in // ExecutionBurstServer is when the RequestChannelReceiver realizes there is data in the FMQ, so @@ -289,7 +291,7 @@ ExecutionBurstController::execute(const nn::Request& request, nn::MeasureTiming version > nn::Version::ANDROID_Q) { // fallback to another execution path if the packet could not be sent if (kFallback) { - return kFallback(request, measure); + return kFallback(request, measure, deadline, loopTimeoutDuration); } return NN_ERROR() << "Request object has features not supported by IBurst::execute"; } @@ -323,7 +325,7 @@ ExecutionBurstController::execute(const nn::Request& request, nn::MeasureTiming if (!sendStatus.ok()) { // fallback to another execution path if the packet could not be sent if (kFallback) { - return kFallback(request, measure); + return kFallback(request, measure, deadline, loopTimeoutDuration); } return NN_ERROR() << "Error sending FMQ packet: " << sendStatus.error(); } |