Home
last modified time | relevance | path

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

/frameworks/ml/nn/driver/sample/
DSampleDriver.cpp313 static void copyRunTimePoolInfos(const RunTimePoolInfo& srcPool, const RunTimePoolInfo& dstPool) { in copyRunTimePoolInfos() argument
315 CHECK(dstPool.getBuffer() != nullptr); in copyRunTimePoolInfos()
316 CHECK(srcPool.getSize() == dstPool.getSize()); in copyRunTimePoolInfos()
317 std::copy(srcPool.getBuffer(), srcPool.getBuffer() + srcPool.getSize(), dstPool.getBuffer()); in copyRunTimePoolInfos()
318 dstPool.flush(); in copyRunTimePoolInfos()
322 const auto dstPool = RunTimePoolInfo::createFromHidlMemory(dst); in copyTo() local
323 if (!dstPool.has_value()) { in copyTo()
327 const ErrorStatus validationStatus = kBuffer->validateCopyTo(dstPool->getSize()); in copyTo()
332 copyRunTimePoolInfos(srcPool, dstPool.value()); in copyTo()
349 const auto dstPool = bufferWrapper->createRunTimePoolInfo(); in copyFromInternal() local
[all …]