Lines Matching refs:memoryBuilder
68 void copyPointersToSharedMemory(nn::Operand* operand, nn::ConstantMemoryBuilder* memoryBuilder) { in copyPointersToSharedMemory() argument
70 CHECK(memoryBuilder != nullptr); in copyPointersToSharedMemory()
80 operand->location = memoryBuilder->append(data, operand->location.length); in copyPointersToSharedMemory()
84 nn::ConstantMemoryBuilder* memoryBuilder) { in copyPointersToSharedMemory() argument
87 [memoryBuilder](auto& operand) { in copyPointersToSharedMemory()
88 copyPointersToSharedMemory(&operand, memoryBuilder); in copyPointersToSharedMemory()
187 nn::ConstantMemoryBuilder memoryBuilder(modelInShared.pools.size()); in flushDataFromPointerToShared() local
188 copyPointersToSharedMemory(&modelInShared.main, &memoryBuilder); in flushDataFromPointerToShared()
190 [&memoryBuilder](auto& subgraph) { in flushDataFromPointerToShared()
191 copyPointersToSharedMemory(&subgraph, &memoryBuilder); in flushDataFromPointerToShared()
194 if (!memoryBuilder.empty()) { in flushDataFromPointerToShared()
195 auto memory = NN_TRY(memoryBuilder.finish()); in flushDataFromPointerToShared()