Lines Matching refs:mb
906 auto mb = std::make_unique<MemoryBuilder>(); in ANeuralNetworksMemoryDesc_create() local
907 *desc = reinterpret_cast<ANeuralNetworksMemoryDesc*>(mb.release()); in ANeuralNetworksMemoryDesc_create()
914 MemoryBuilder* mb = reinterpret_cast<MemoryBuilder*>(desc); in ANeuralNetworksMemoryDesc_free() local
915 delete mb; in ANeuralNetworksMemoryDesc_free()
926 MemoryBuilder* mb = reinterpret_cast<MemoryBuilder*>(desc); in ANeuralNetworksMemoryDesc_addInputRole() local
928 return mb->addRole(*c, IOType::INPUT, index, frequency); in ANeuralNetworksMemoryDesc_addInputRole()
939 MemoryBuilder* mb = reinterpret_cast<MemoryBuilder*>(desc); in ANeuralNetworksMemoryDesc_addOutputRole() local
941 return mb->addRole(*c, IOType::OUTPUT, index, frequency); in ANeuralNetworksMemoryDesc_addOutputRole()
952 MemoryBuilder* mb = reinterpret_cast<MemoryBuilder*>(desc); in ANeuralNetworksMemoryDesc_setDimensions() local
953 return mb->setDimensions(dims); in ANeuralNetworksMemoryDesc_setDimensions()
962 MemoryBuilder* mb = reinterpret_cast<MemoryBuilder*>(desc); in ANeuralNetworksMemoryDesc_finish() local
963 return mb->finish(); in ANeuralNetworksMemoryDesc_finish()
976 const MemoryBuilder* mb = reinterpret_cast<const MemoryBuilder*>(desc); in ANeuralNetworksMemory_createFromDesc() local
977 auto [n, m] = mb->allocate(); in ANeuralNetworksMemory_createFromDesc()