Lines Matching refs:mb
971 auto mb = std::make_unique<MemoryBuilder>(); in ANeuralNetworksMemoryDesc_create() local
972 *desc = reinterpret_cast<ANeuralNetworksMemoryDesc*>(mb.release()); in ANeuralNetworksMemoryDesc_create()
979 MemoryBuilder* mb = reinterpret_cast<MemoryBuilder*>(desc); in ANeuralNetworksMemoryDesc_free() local
980 delete mb; in ANeuralNetworksMemoryDesc_free()
991 MemoryBuilder* mb = reinterpret_cast<MemoryBuilder*>(desc); in ANeuralNetworksMemoryDesc_addInputRole() local
993 return mb->addRole(*c, IOType::INPUT, index, frequency); in ANeuralNetworksMemoryDesc_addInputRole()
1004 MemoryBuilder* mb = reinterpret_cast<MemoryBuilder*>(desc); in ANeuralNetworksMemoryDesc_addOutputRole() local
1006 return mb->addRole(*c, IOType::OUTPUT, index, frequency); in ANeuralNetworksMemoryDesc_addOutputRole()
1017 MemoryBuilder* mb = reinterpret_cast<MemoryBuilder*>(desc); in ANeuralNetworksMemoryDesc_setDimensions() local
1018 return mb->setDimensions(dims); in ANeuralNetworksMemoryDesc_setDimensions()
1027 MemoryBuilder* mb = reinterpret_cast<MemoryBuilder*>(desc); in ANeuralNetworksMemoryDesc_finish() local
1028 return mb->finish(); in ANeuralNetworksMemoryDesc_finish()
1041 const MemoryBuilder* mb = reinterpret_cast<const MemoryBuilder*>(desc); in ANeuralNetworksMemory_createFromDesc() local
1042 auto [n, m] = mb->allocate(); in ANeuralNetworksMemory_createFromDesc()