Searched refs:memorySize (Results 1 – 3 of 3) sorted by relevance
/frameworks/ml/nn/runtime/test/ |
D | TestValidation.cpp | 419 const size_t memorySize = 20; in TEST_F() local 420 int memoryFd = ASharedMemory_create("nnMemory", memorySize); in TEST_F() 424 EXPECT_EQ(ANeuralNetworksMemory_createFromFd(memorySize, PROT_READ | PROT_WRITE, memoryFd, 0, in TEST_F() 438 EXPECT_EQ(ANeuralNetworksModel_setOperandValueFromMemory(mModel, 0, memory, 0, memorySize), in TEST_F() 446 EXPECT_EQ(ANeuralNetworksModel_setOperandValueFromMemory(mModel, 0, memory, memorySize + 1, in TEST_F() 451 EXPECT_EQ(ANeuralNetworksModel_setOperandValueFromMemory(mModel, 0, memory, memorySize - 3, in TEST_F() 501 const size_t memorySize = 20; in TEST_F() local 503 .width = memorySize, in TEST_F() 518 EXPECT_EQ(ANeuralNetworksModel_setOperandValueFromMemory(mModel, 0, memory, memorySize + 1, in TEST_F() 523 EXPECT_EQ(ANeuralNetworksModel_setOperandValueFromMemory(mModel, 0, memory, memorySize - 3, in TEST_F() [all …]
|
D | TestCompliance.cpp | 115 const size_t memorySize = 20; in TEST_F() local 117 .width = memorySize, in TEST_F()
|
D | TestPartitioningRandom.cpp | 283 uint32_t& memorySize = mMemorySizes[memoryIndex]; in addRegion() local 284 auto desc = std::make_tuple(memoryIndex, (uint32_t)memorySize, length); in addRegion() 286 memorySize += length; in addRegion() 340 for (uint32_t memorySize : mMemorySizes) { in layout() local 341 const int fd = ASharedMemory_create(nullptr, memorySize); in layout() 343 mMemorys.emplace_back(memorySize, PROT_READ | PROT_WRITE, fd, 0); in layout()
|