Fix a bug in reusable burst execution.

The reusable burst execution incorrectly holds a reference to memory
identifier tokens.

Bug: 188568523
Test: NNT_static and inspect logcat
Change-Id: Ic8fb8be12bf579a316e7df8480ab3ccdc5c0e635
Merged-In: Ic8fb8be12bf579a316e7df8480ab3ccdc5c0e635
(cherry picked from commit 2082b871ab)
This commit is contained in:
Xusong Wang
2021-05-18 13:54:11 -07:00
parent f3374d4237
commit 5e0459576c

View File

@@ -62,7 +62,7 @@ class BurstExecution final : public nn::IExecution,
private:
const std::shared_ptr<const Burst> kBurst;
const Request kRequest;
const std::vector<int64_t>& kMemoryIdentifierTokens;
const std::vector<int64_t> kMemoryIdentifierTokens;
const bool kMeasure;
const int64_t kLoopTimeoutDuration;
const hal::utils::RequestRelocation kRelocation;