Searched refs:weightsSize (Results 1 – 1 of 1) sorted by relevance
/packages/modules/NeuralNetworks/runtime/test/ |
D | TestMemoryInternal.cpp | 105 constexpr uint32_t weightsSize = offsetForMatrix3 + sizeof(matrix3) + 60; in TEST_F() local 108 int weightsFd = ASharedMemory_create("weights", weightsSize); in TEST_F() 112 CHECK_EQ(ftruncate(weightsFd, weightsSize), 0); in TEST_F() 116 (uint8_t*)mmap(nullptr, weightsSize, PROT_READ | PROT_WRITE, MAP_SHARED, weightsFd, 0); in TEST_F() 120 WrapperMemory weights(weightsSize, PROT_READ | PROT_WRITE, weightsFd, 0); in TEST_F() 191 munmap(weightsData, weightsSize); in TEST_F()
|