/packages/modules/NeuralNetworks/common/ |
D | LegacyHalUtils.cpp | 131 LOG(INFO) << "pools" << SHOW_IF_DEBUG(toString(model.pools)); in logModelToInfo() 141 LOG(INFO) << "pools" << SHOW_IF_DEBUG(toString(model.pools)); in logModelToInfo() 151 LOG(INFO) << "pools" << SHOW_IF_DEBUG(toString(model.pools)); in logModelToInfo() 170 LOG(INFO) << "pools" << SHOW_IF_DEBUG(toString(model.pools)); in logModelToInfo() 316 const hardware::hidl_vec<hardware::hidl_memory>& pools) { in setRunTimePoolInfosFromHidlMemories() argument 317 return setRunTimePoolInfosFromCanonicalMemories(poolInfos, uncheckedConvert(pools)); in setRunTimePoolInfosFromHidlMemories() 788 std::vector<bool> isPoolCompliant(model.pools.size(), false); in compliantWith() 790 model.pools.begin(), model.pools.end(), isPoolCompliant.begin(), in compliantWith() 1279 .pools = model.pools}; in convertToV1_0() 1292 .pools = model.pools}; in convertToV1_0() [all …]
|
D | ValidateHal.cpp | 58 MemoryAccessVerifier(const hardware::hidl_vec<hardware::hidl_memory>& pools) in MemoryAccessVerifier() argument 59 : mPoolCount(pools.size()), mPoolSizes(mPoolCount) { in MemoryAccessVerifier() 61 mPoolSizes[i] = pools[i].size(); in MemoryAccessVerifier() 64 MemoryAccessVerifier(const hardware::hidl_vec<V1_3::Request::MemoryPool>& pools) in MemoryAccessVerifier() argument 65 : mPoolCount(pools.size()), mPoolSizes(mPoolCount) { in MemoryAccessVerifier() 67 switch (pools[i].getDiscriminator()) { in MemoryAccessVerifier() 69 mPoolSizes[i] = pools[i].hidlMemory().size(); in MemoryAccessVerifier() 169 const hardware::hidl_vec<hardware::hidl_memory>& pools, in validateOperands() argument 173 MemoryAccessVerifier poolVerifier(pools); in validateOperands() 550 static bool validatePools(const hardware::hidl_vec<T_MemoryPool>& pools, HalVersion ver) { in validatePools() argument [all …]
|
D | ModelUtils.cpp | 156 std::vector<bool> used(model.pools.size(), false); in identifyUsedPools() 161 CHECK_EQ(used.size(), model.pools.size()); in identifyUsedPools() 280 keepSelectedElements(&model->pools, poolsUsed); in removeDeadOperands()
|
D | ExecutionBurstServer.cpp | 74 hardware::hidl_vec<hardware::hidl_memory> pools(slots.size()); in execute() local 75 std::transform(slots.begin(), slots.end(), pools.begin(), in execute() 80 fullRequest.pools = std::move(pools); in execute()
|
D | HalBufferTracker.cpp | 62 CHECK_LT(poolIndex, request.pools.size()); in validateRequest() 63 CHECK(std::holds_alternative<Request::MemoryDomainToken>(request.pools[poolIndex])); in validateRequest()
|
D | BufferTracker.cpp | 62 CHECK_LT(poolIndex, request.pools.size()); in validateRequest() 63 CHECK(std::holds_alternative<Request::MemoryDomainToken>(request.pools[poolIndex])); in validateRequest()
|
D | UtilsTest.cpp | 171 .pools = {std::move(pool)}, in TEST() 215 .pools = {std::move(pool)}, in TEST()
|
D | ExecutionBurstController.cpp | 73 size_t count = 2 + request.inputs.size() + request.outputs.size() + request.pools.size(); in serialize() 92 /*.numberOfPools=*/static_cast<uint32_t>(request.pools.size())}); in serialize() 606 const std::vector<int32_t> slots = mMemoryCache->getSlots(request.pools, memoryIds); in compute()
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_variation/ |
D | stdout.txt.expect | 112 const std::vector<hidl_memory> pools = {}; 120 .pools = pools, 259 const std::vector<hidl_memory> pools = {}; 267 .pools = pools, 407 const std::vector<hidl_memory> pools = {}; 415 .pools = pools, 554 const std::vector<hidl_memory> pools = {}; 562 .pools = pools, 701 const std::vector<hidl_memory> pools = {}; 709 .pools = pools, [all …]
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_naming/ |
D | stdout.txt.expect | 112 const std::vector<hidl_memory> pools = {}; 120 .pools = pools, 259 const std::vector<hidl_memory> pools = {}; 267 .pools = pools, 407 const std::vector<hidl_memory> pools = {}; 415 .pools = pools, 554 const std::vector<hidl_memory> pools = {}; 562 .pools = pools, 701 const std::vector<hidl_memory> pools = {}; 709 .pools = pools, [all …]
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_implicit_variation/ |
D | stdout.txt.expect | 112 const std::vector<hidl_memory> pools = {}; 120 .pools = pools, 259 const std::vector<hidl_memory> pools = {}; 267 .pools = pools, 407 const std::vector<hidl_memory> pools = {}; 415 .pools = pools, 554 const std::vector<hidl_memory> pools = {}; 562 .pools = pools, 701 const std::vector<hidl_memory> pools = {}; 709 .pools = pools, [all …]
|
/packages/modules/NeuralNetworks/tools/test_generator/test_harness/ |
D | TestUtils.cpp | 138 std::vector<SharedMemory> pools; in createModel() local 140 pools.push_back(NN_TRY(memoryBuilder.finish())); in createModel() 146 .pools = std::move(pools), in createModel() 200 std::vector<Request::MemoryPool> pools; in createRequest() local 202 pools.push_back(NN_TRY(outputBuilder.finish())); in createRequest() 206 .inputs = std::move(inputs), .outputs = std::move(outputs), .pools = std::move(pools)}; in createRequest()
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_implicit_parameter/ |
D | stdout.txt.expect | 67 const std::vector<hidl_memory> pools = {}; 75 .pools = pools, 190 const std::vector<hidl_memory> pools = {}; 198 .pools = pools, 313 const std::vector<hidl_memory> pools = {}; 321 .pools = pools,
|
/packages/modules/NeuralNetworks/driver/sample/ |
D | CanonicalPreparedModel.cpp | 43 requestPoolInfos.reserve(request.pools.size()); in createRunTimePoolInfos() 44 bufferWrappers.reserve(request.pools.size()); in createRunTimePoolInfos() 45 for (uint32_t i = 0; i < request.pools.size(); ++i) { in createRunTimePoolInfos() 46 auto& pool = request.pools[i]; in createRunTimePoolInfos() 79 const auto& pool = request.pools[poolIndex]; in updateDeviceMemories() 89 const auto& pool = request.pools[poolIndex]; in updateDeviceMemories() 101 const auto& pool = request.pools[poolIndex]; in updateDeviceMemories() 262 const auto& pool = request.pools[poolIndex]; in executeFenced()
|
/packages/modules/NeuralNetworks/common/types/src/ |
D | SharedMemory.cpp | 162 ConstantMemoryBuilder memoryBuilder(modelInShared.pools.size()); in flushDataFromPointerToShared() 171 modelInShared.pools.push_back(std::move(memory)); in flushDataFromPointerToShared() 215 MutableMemoryBuilder inputBuilder(requestInShared.pools.size()); in convertRequestFromPointerToShared() 234 requestInShared.pools.push_back(memory); in convertRequestFromPointerToShared() 240 MutableMemoryBuilder outputBuilder(requestInShared.pools.size()); in convertRequestFromPointerToShared() 258 requestInShared.pools.push_back(memory); in convertRequestFromPointerToShared()
|
D | TypeUtils.cpp | 268 poolSizes.reserve(model.pools.size()); in getMemorySizes() 269 std::transform(model.pools.begin(), model.pools.end(), std::back_inserter(poolSizes), in getMemorySizes() 675 << ", .operandValues=" << model.operandValues << ", .pools=" << model.pools in operator <<() 717 << ", .pools=" << request.pools << "}"; in operator <<()
|
/packages/modules/NeuralNetworks/driver/sample_aidl/ |
D | SampleDriverAidl.cpp | 307 const auto canonicalPools = convert(mModel.pools); in initialize() 320 requestPoolInfos.reserve(request.pools.size()); in createRunTimePoolInfos() 321 bufferWrappers.reserve(request.pools.size()); in createRunTimePoolInfos() 322 for (uint32_t i = 0; i < request.pools.size(); i++) { in createRunTimePoolInfos() 323 const auto& pool = request.pools[i]; in createRunTimePoolInfos() 362 const auto& pool = request.pools[poolIndex]; in updateDeviceMemories() 372 const auto& pool = request.pools[poolIndex]; in updateDeviceMemories() 383 const auto& pool = request.pools[poolIndex]; in updateDeviceMemories() 578 const auto& pool = request.pools[poolIndex]; in executeFenced() 634 if (request.pools.size() != memoryIdentifierTokens.size()) { in executeSynchronously()
|
/packages/modules/NeuralNetworks/driver/sample_hidl/ |
D | SampleDriver.cpp | 366 return setRunTimePoolInfosFromCanonicalMemories(&mPoolInfos, uncheckedConvert(mModel.pools)); in initialize() 375 requestPoolInfos.reserve(request.pools.size()); in createRunTimePoolInfos() 376 bufferWrappers.reserve(request.pools.size()); in createRunTimePoolInfos() 377 for (uint32_t i = 0; i < request.pools.size(); i++) { in createRunTimePoolInfos() 378 auto& pool = request.pools[i]; in createRunTimePoolInfos() 415 const auto& pool = request.pools[poolIndex]; in updateDeviceMemories() 424 const auto& pool = request.pools[poolIndex]; in updateDeviceMemories() 435 const auto& pool = request.pools[poolIndex]; in updateDeviceMemories() 736 const auto& pool = request.pools[poolIndex]; in executeFenced() 800 hardware::hidl_vec<V1_3::Request::MemoryPool> pools(slots.size()); in execute() local [all …]
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_quant8/ |
D | stdout.txt.expect | 94 const std::vector<hidl_memory> pools = {}; 102 .pools = pools,
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_float/ |
D | stdout.txt.expect | 94 const std::vector<hidl_memory> pools = {}; 102 .pools = pools,
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_backward_compatibility_quant8/ |
D | stdout.txt.expect | 103 const std::vector<hidl_memory> pools = {}; 111 .pools = pools,
|
/packages/modules/NeuralNetworks/runtime/test/ |
D | TestCompliance.cpp | 167 .pools = {ahwbMemoryPool, sharedMemoryPool}, in TEST_F() 180 .pools = {sharedMemoryPool, ahwbMemoryPool}, in TEST_F() 202 .pools = {deviceMemoryPool, sharedMemoryPool}, in TEST_F() 215 .pools = {sharedMemoryPool, deviceMemoryPool}, in TEST_F()
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_internal/ |
D | stdout.txt.expect | 265 const std::vector<hidl_memory> pools = {}; 273 .pools = pools,
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_backward_compatibility_float/ |
D | stdout.txt.expect | 274 const std::vector<hidl_memory> pools = {}; 282 .pools = pools,
|
/packages/modules/NeuralNetworks/common/include/ |
D | CpuExecutor.h | 124 const std::vector<SharedMemory>& pools); 127 const std::vector<Request::MemoryPool>& pools);
|