Lines Matching refs:mb
926 auto mb = std::make_unique<MemoryBuilder>(); in ANeuralNetworksMemoryDesc_create() local
927 *desc = reinterpret_cast<ANeuralNetworksMemoryDesc*>(mb.release()); in ANeuralNetworksMemoryDesc_create()
934 MemoryBuilder* mb = reinterpret_cast<MemoryBuilder*>(desc); in ANeuralNetworksMemoryDesc_free() local
935 delete mb; in ANeuralNetworksMemoryDesc_free()
946 MemoryBuilder* mb = reinterpret_cast<MemoryBuilder*>(desc); in ANeuralNetworksMemoryDesc_addInputRole() local
948 return mb->addRole(*c, IOType::INPUT, index, frequency); in ANeuralNetworksMemoryDesc_addInputRole()
959 MemoryBuilder* mb = reinterpret_cast<MemoryBuilder*>(desc); in ANeuralNetworksMemoryDesc_addOutputRole() local
961 return mb->addRole(*c, IOType::OUTPUT, index, frequency); in ANeuralNetworksMemoryDesc_addOutputRole()
972 MemoryBuilder* mb = reinterpret_cast<MemoryBuilder*>(desc); in ANeuralNetworksMemoryDesc_setDimensions() local
973 return mb->setDimensions(dims); in ANeuralNetworksMemoryDesc_setDimensions()
982 MemoryBuilder* mb = reinterpret_cast<MemoryBuilder*>(desc); in ANeuralNetworksMemoryDesc_finish() local
983 return mb->finish(); in ANeuralNetworksMemoryDesc_finish()
996 const MemoryBuilder* mb = reinterpret_cast<const MemoryBuilder*>(desc); in ANeuralNetworksMemory_createFromDesc() local
997 auto [n, m] = mb->allocate(); in ANeuralNetworksMemory_createFromDesc()