Searched refs:memorySize (Results 1 – 3 of 3) sorted by relevance
/frameworks/ml/nn/runtime/test/ |
D | TestValidation.cpp | 605 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 …]
|
D | TestCompliance.cpp | 137 const size_t memorySize = 20; in TEST_F() local 139 .width = memorySize, in TEST_F()
|
D | TestPartitioningRandom.cpp | 266 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()
|