Home
last modified time | relevance | path

Searched refs:mTokenToBuffers (Results 1 – 2 of 2) sorted by relevance

/frameworks/ml/nn/common/
DBufferTracker.cpp197 token = mTokenToBuffers.size(); in add()
198 mTokenToBuffers.push_back(std::move(buffer)); in add()
202 mTokenToBuffers[token] = std::move(buffer); in add()
210 if (mTokenToBuffers.size() <= token || mTokenToBuffers[token] == nullptr) { in get()
214 return mTokenToBuffers[token]; in get()
219 CHECK_LT(token, mTokenToBuffers.size()); in free()
220 CHECK(mTokenToBuffers[token] != nullptr); in free()
222 mTokenToBuffers[token] = nullptr; in free()
/frameworks/ml/nn/common/include/
DBufferTracker.h98 BufferTracker() : mTokenToBuffers(1) {} in BufferTracker()
112 std::vector<std::shared_ptr<ManagedBuffer>> mTokenToBuffers; variable