Home
last modified time | relevance | path

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

/frameworks/ml/nn/runtime/test/
DTestValidation.cpp605 const size_t memorySize = 20; in TEST_F() local
606 int memoryFd = ASharedMemory_create("nnMemory", memorySize); in TEST_F()
610 EXPECT_EQ(ANeuralNetworksMemory_createFromFd(memorySize, PROT_READ | PROT_WRITE, memoryFd, 0, in TEST_F()
624 EXPECT_EQ(ANeuralNetworksModel_setOperandValueFromMemory(mModel, 0, memory, 0, memorySize), in TEST_F()
632 EXPECT_EQ(ANeuralNetworksModel_setOperandValueFromMemory(mModel, 0, memory, memorySize + 1, in TEST_F()
637 EXPECT_EQ(ANeuralNetworksModel_setOperandValueFromMemory(mModel, 0, memory, memorySize - 3, in TEST_F()
690 const size_t memorySize = 20; in TEST_F() local
692 .width = memorySize, in TEST_F()
707 EXPECT_EQ(ANeuralNetworksModel_setOperandValueFromMemory(mModel, 0, memory, memorySize + 1, in TEST_F()
712 EXPECT_EQ(ANeuralNetworksModel_setOperandValueFromMemory(mModel, 0, memory, memorySize - 3, in TEST_F()
[all …]
DTestCompliance.cpp137 const size_t memorySize = 20; in TEST_F() local
139 .width = memorySize, in TEST_F()
DTestPartitioningRandom.cpp266 uint32_t& memorySize = mMemorySizes[memoryIndex]; in addRegion() local
267 auto desc = std::make_tuple(memoryIndex, (uint32_t)memorySize, length); in addRegion()
269 memorySize += length; in addRegion()
317 for (uint32_t memorySize : mMemorySizes) { in layout() local
318 auto [n, ashmem] = nn::MemoryAshmem::create(memorySize); in layout()