/frameworks/base/apct-tests/perftests/core/src/android/text/ |
D | PrecomputedTextMemoryUsageTest.java | 64 int[] memories = new int[TRIAL_COUNT]; in testMemoryUsage_Latin_NoHyphenation() local 72 memories[i] = PrecomputedText.create( in testMemoryUsage_Latin_NoHyphenation() 76 reportMemoryUsage(median(memories), "MemoryUsage_Latin_NoHyphenation"); in testMemoryUsage_Latin_NoHyphenation() 82 int[] memories = new int[TRIAL_COUNT]; in testMemoryUsage_Latin_Hyphenation() local 90 memories[i] = PrecomputedText.create( in testMemoryUsage_Latin_Hyphenation() 94 reportMemoryUsage(median(memories), "MemoryUsage_Latin_Hyphenation"); in testMemoryUsage_Latin_Hyphenation() 100 int[] memories = new int[TRIAL_COUNT]; in testMemoryUsage_CJK_NoHyphenation() local 108 memories[i] = PrecomputedText.create( in testMemoryUsage_CJK_NoHyphenation() 112 reportMemoryUsage(median(memories), "MemoryUsage_CJK_NoHyphenation"); in testMemoryUsage_CJK_NoHyphenation() 118 int[] memories = new int[TRIAL_COUNT]; in testMemoryUsage_CJK_Hyphenation() local [all …]
|
/frameworks/ml/nn/runtime/ |
D | Manager.cpp | 138 const std::vector<const Memory*>& memories, 146 const std::vector<const Memory*>& memories, const std::vector<int>& waitFor, 283 std::vector<const Memory*>* memories) { in allocatePointerArgumentsToPool() argument 284 CHECK(memories != nullptr); in allocatePointerArgumentsToPool() 286 const uint32_t nextPoolIndex = memories->size(); in allocatePointerArgumentsToPool() 310 memories->push_back(memory.get()); in allocatePointerArgumentsToPool() 325 const std::vector<const Memory*>& memories, in execute() argument 332 std::vector<const Memory*> localMemories = memories; in execute() 433 const std::vector<const Memory*>& memories, const std::vector<int>& waitFor, in executeFenced() argument 440 std::vector<const Memory*> localMemories = memories; in executeFenced() [all …]
|
D | ExecutionBuilder.cpp | 1082 const std::optional<Deadline>& deadline, const std::vector<const Memory*>& memories, in computeWithMemories() argument 1095 mInputs, mOutputs, memories, burstController, measure, deadline, loopTimeoutDuration); in computeWithMemories() 1147 std::vector<const Memory*> memories = mMemories.getObjects(); in computeOnCpuFallback() local 1148 std::vector<bool> isUsedAsInput(memories.size(), false); in computeOnCpuFallback() 1149 std::vector<bool> isUsedAsOutput(memories.size(), false); in computeOnCpuFallback() 1173 for (uint32_t i = 0; i < memories.size(); i++) { in computeOnCpuFallback() 1187 memories[i] = blobAhwb.get(); in computeOnCpuFallback() 1192 auto [nCompute, outputShapes, timing] = computeWithMemories({}, memories); in computeOnCpuFallback() 1198 for (uint32_t i = 0; i < memories.size(); i++) { in computeOnCpuFallback() 1201 n = copyHidlMemoryToIBuffer(memories[i]->getHidlMemory(), memory->getIBuffer(), {}); in computeOnCpuFallback()
|
D | Manager.h | 60 const std::vector<const Memory*>& memories, 71 const std::vector<const Memory*>& memories, const std::vector<int>& waitFor,
|
D | ExecutionBuilder.h | 291 const std::optional<Deadline>& deadline, const std::vector<const Memory*>& memories,
|
/frameworks/ml/nn/common/ |
D | ExecutionBurstController.cpp | 399 hidl_vec<hidl_memory> memories(slots.size()); in getMemories() local 400 std::transform(slots.begin(), slots.end(), memories.begin(), [this](int32_t slot) { in getMemories() 405 if (!std::all_of(memories.begin(), memories.end(), in getMemories() 412 cb(V1_0::ErrorStatus::NONE, std::move(memories)); in getMemories() 417 const hidl_vec<hidl_memory>& memories, const std::vector<intptr_t>& keys) { in getSlots() argument 422 slots.reserve(memories.size()); in getSlots() 423 for (size_t i = 0; i < memories.size(); ++i) { in getSlots() 424 slots.push_back(getSlotLocked(memories[i], keys[i])); in getSlots()
|
D | ExecutionBurstServer.cpp | 586 const hidl_vec<hidl_memory>& memories) { in ensureCacheEntriesArePresentLocked() argument 588 returnedMemories = memories; in ensureCacheEntriesArePresentLocked()
|
/frameworks/ml/nn/common/include/ |
D | ExecutionBurstController.h | 254 std::vector<int32_t> getSlots(const hardware::hidl_vec<hardware::hidl_memory>& memories,
|
/frameworks/ml/nn/tools/api/ |
D | NeuralNetworks.t | 344 * and similar memories.
|