diff options
author | Chris Gross <chrisgross@google.com> | 2021-05-19 11:39:07 -0700 |
---|---|---|
committer | Chris Gross <chrisgross@google.com> | 2021-05-19 11:39:07 -0700 |
commit | a01a9128380dad45a28f4740a57136a058eb9d12 (patch) | |
tree | bc23fb815c7ca1da5c47c38ec75859572b1c2fbd /neuralnetworks/1.2/utils/src/ExecutionBurstController.cpp | |
parent | 7c8e6a102c7b41e35d85931a8aaf445359ccd0c3 (diff) | |
parent | fd795fe35563951f2a34471acc5d745866843b0f (diff) |
Merge SP1A.210513.004
Change-Id: I8ff902b999e3f6515f1a51c85c14bc91a0037204
Diffstat (limited to 'neuralnetworks/1.2/utils/src/ExecutionBurstController.cpp')
-rw-r--r-- | neuralnetworks/1.2/utils/src/ExecutionBurstController.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/neuralnetworks/1.2/utils/src/ExecutionBurstController.cpp b/neuralnetworks/1.2/utils/src/ExecutionBurstController.cpp index 8e82d2536d..b4b6f680d3 100644 --- a/neuralnetworks/1.2/utils/src/ExecutionBurstController.cpp +++ b/neuralnetworks/1.2/utils/src/ExecutionBurstController.cpp @@ -328,7 +328,8 @@ ExecutionBurstController::execute(const nn::Request& request, nn::MeasureTiming hal::utils::RequestRelocation relocation; const nn::Request& requestInShared = NN_TRY(hal::utils::makeExecutionFailure(hal::utils::convertRequestFromPointerToShared( - &request, &maybeRequestInShared, &relocation))); + &request, nn::kDefaultRequestMemoryAlignment, nn::kMinMemoryPadding, + &maybeRequestInShared, &relocation))); // clear pools field of request, as they will be provided via slots const auto requestWithoutPools = nn::Request{ @@ -373,7 +374,8 @@ nn::GeneralResult<nn::SharedExecution> ExecutionBurstController::createReusableE std::optional<nn::Request> maybeRequestInShared; hal::utils::RequestRelocation relocation; const nn::Request& requestInShared = NN_TRY(hal::utils::convertRequestFromPointerToShared( - &request, &maybeRequestInShared, &relocation)); + &request, nn::kDefaultRequestMemoryAlignment, nn::kMinMemoryPadding, + &maybeRequestInShared, &relocation)); // clear pools field of request, as they will be provided via slots const auto requestWithoutPools = nn::Request{ |