Searched refs:memorySize (Results 1 – 4 of 4) sorted by relevance
/packages/modules/NeuralNetworks/runtime/test/ |
D | TestValidation.cpp | 611 const size_t memorySize = 20; in TEST_F() local 612 int memoryFd = ASharedMemory_create("nnMemory", memorySize); in TEST_F() 616 EXPECT_EQ(ANeuralNetworksMemory_createFromFd(memorySize, PROT_READ | PROT_WRITE, memoryFd, 0, in TEST_F() 630 EXPECT_EQ(ANeuralNetworksModel_setOperandValueFromMemory(mModel, 0, memory, 0, memorySize), in TEST_F() 638 EXPECT_EQ(ANeuralNetworksModel_setOperandValueFromMemory(mModel, 0, memory, memorySize + 1, in TEST_F() 643 EXPECT_EQ(ANeuralNetworksModel_setOperandValueFromMemory(mModel, 0, memory, memorySize - 3, in TEST_F() 696 const size_t memorySize = 20; in TEST_F() local 698 .width = memorySize, in TEST_F() 713 EXPECT_EQ(ANeuralNetworksModel_setOperandValueFromMemory(mModel, 0, memory, memorySize + 1, in TEST_F() 718 EXPECT_EQ(ANeuralNetworksModel_setOperandValueFromMemory(mModel, 0, memory, memorySize - 3, in TEST_F() [all …]
|
D | TestCompliance.cpp | 140 const size_t memorySize = 20; in TEST_F() local 142 .width = memorySize, in TEST_F()
|
D | TestPartitioningRandom.cpp | 282 uint32_t& memorySize = mMemorySizes[memoryIndex]; in addRegion() local 283 auto desc = std::make_tuple(memoryIndex, (uint32_t)memorySize, length); in addRegion() 285 memorySize += length; in addRegion() 333 for (uint32_t memorySize : mMemorySizes) { in layout() local 334 auto [n, ashmem] = nn::MemoryAshmem::create(memorySize); in layout()
|
/packages/modules/NeuralNetworks/common/ |
D | Validation.cpp | 1059 const auto memorySize = memorySizes[location.poolIndex]; in validateRequestArgument() local 1060 NN_VALIDATE_LE(lastPosition, memorySize); in validateRequestArgument() 1061 if (memorySize > 0) { in validateRequestArgument()
|