Searched refs:sl_wrapper (Results 1 – 12 of 12) sorted by relevance
/packages/modules/NeuralNetworks/shim_and_sl/include/ |
D | ShimPreparedModel.h | 36 ::android::nn::sl_wrapper::Compilation compilation, in ShimPreparedModel() 37 std::vector<::android::nn::sl_wrapper::Model> mainAndReferencedModels, in ShimPreparedModel() 38 std::vector<std::unique_ptr<::android::nn::sl_wrapper::Memory>> memoryPools, in ShimPreparedModel() 71 const ::android::nn::sl_wrapper::Compilation& getCompilation() const { return mCompilation; } in getCompilation() 72 const ::android::nn::sl_wrapper::Model& getMainModel() const { in getMainModel() 79 ::android::nn::sl_wrapper::Execution* execution, 80 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>>* requestMemoryPools, 99 ::android::nn::sl_wrapper::Compilation mCompilation; 100 std::vector<::android::nn::sl_wrapper::Model> mMainAndReferencedModels; 101 std::vector<std::unique_ptr<::android::nn::sl_wrapper::Memory>> mMemoryPools;
|
D | ShimConverter.h | 33 std::vector<std::unique_ptr<::android::nn::sl_wrapper::Memory>> memory; 34 std::vector<::android::nn::sl_wrapper::Model> models; 55 std::unique_ptr<::android::nn::sl_wrapper::Memory> convertFromHAL(
|
D | ShimBufferTracker.h | 69 std::unique_ptr<Token> add(std::shared_ptr<::android::nn::sl_wrapper::Memory> buffer); 70 std::shared_ptr<::android::nn::sl_wrapper::Memory> get(uint32_t token) const; 81 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>> mTokenToBuffers
|
D | SupportLibraryWrapper.h | 42 namespace sl_wrapper {
|
/packages/modules/NeuralNetworks/shim_and_sl/ |
D | ShimPreparedModel.cpp | 49 ::android::nn::sl_wrapper::Execution* execution, in parseInputs() 50 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>>* requestMemoryPools, in parseInputs() 57 std::shared_ptr<::android::nn::sl_wrapper::Memory> mem = in parseInputs() 196 std::shared_ptr<::android::nn::sl_wrapper::Execution> execution, Event e, in ShimFencedExecutionCallback() 197 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>> memoryPools, in ShimFencedExecutionCallback() 250 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>> mMemoryPools; 251 std::shared_ptr<::android::nn::sl_wrapper::Execution> mExecution; 258 const std::shared_ptr<::android::nn::sl_wrapper::Execution>& execution, in executeFencedInternal() 259 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>> requestMemoryPools, in executeFencedInternal() 315 std::make_shared<::android::nn::sl_wrapper::Execution>(mNnapi.get(), &mCompilation); in executeFencedCommon() [all …]
|
D | ShimConverter.cpp | 39 using namespace ::android::nn::sl_wrapper; 48 const std::vector<std::unique_ptr<::android::nn::sl_wrapper::Memory>>& memoryPools, in convertSubgraphFromHAL() 50 std::vector<std::optional<::android::nn::sl_wrapper::Model>>* allModels, in convertSubgraphFromHAL() 63 ::android::nn::sl_wrapper::Model resultModel(nnapi); in convertSubgraphFromHAL() 386 std::vector<std::unique_ptr<::android::nn::sl_wrapper::Memory>> memoryPools; in convertFromHAL() 389 std::unique_ptr<::android::nn::sl_wrapper::Memory> memory = convertFromHAL(nnapi, pool); in convertFromHAL() 398 std::vector<std::optional<::android::nn::sl_wrapper::Model>> allModels(model.referenced.size() + in convertFromHAL() 414 std::vector<::android::nn::sl_wrapper::Model> result; in convertFromHAL() 428 std::unique_ptr<::android::nn::sl_wrapper::Memory> convertFromHAL( in convertFromHAL() 437 auto memory = std::make_unique<::android::nn::sl_wrapper::Memory>( in convertFromHAL() [all …]
|
D | ShimBufferTracker.cpp | 30 using namespace ::android::nn::sl_wrapper; 35 std::shared_ptr<::android::nn::sl_wrapper::Memory> buffer) { in add() 52 std::shared_ptr<::android::nn::sl_wrapper::Memory> ShimBufferTracker::get(uint32_t token) const { in get()
|
D | ShimDevice.cpp | 52 using namespace ::android::nn::sl_wrapper; 198 std::shared_ptr<::android::nn::sl_wrapper::Memory> memory, in ShimBuffer() 315 std::shared_ptr<::android::nn::sl_wrapper::Memory> mMemory; 439 std::make_shared<::android::nn::sl_wrapper::Memory>(mNnapi.get(), slDesc, *typeSize); in allocate() 563 auto compilation = ::android::nn::sl_wrapper::Compilation::createForDevice( in prepareModelCommon()
|
D | SupportLibraryWrapper.cpp | 21 namespace sl_wrapper { namespace
|
/packages/modules/NeuralNetworks/runtime/test/ |
D | SupportLibraryTestUtils.h | 35 sl_wrapper::Memory memory) in TestAshmem() 59 sl_wrapper::Memory memory(nnapi, length, PROT_READ | PROT_WRITE, fd, 0); in createFrom() 68 sl_wrapper::Memory* get() { return &mMemory; } in get() 78 sl_wrapper::Memory mMemory;
|
D | GeneratedTestUtils.h | 38 namespace test_wrapper = android::nn::sl_wrapper; 58 GeneratedModel(const NnApiSupportLibrary* nnapi) : sl_wrapper::Model(nnapi) {} in GeneratedModel()
|
D | SupportLibraryTestGenerated.cpp | 61 using namespace sl_wrapper;
|