Home
last modified time | relevance | path

Searched refs:sl_wrapper (Results 1 – 12 of 12) sorted by relevance

/packages/modules/NeuralNetworks/shim_and_sl/include/
DShimPreparedModel.h36 ::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;
DShimConverter.h33 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(
DShimBufferTracker.h69 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
DSupportLibraryWrapper.h42 namespace sl_wrapper {
/packages/modules/NeuralNetworks/shim_and_sl/
DShimPreparedModel.cpp49 ::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 …]
DShimConverter.cpp39 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 …]
DShimBufferTracker.cpp30 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()
DShimDevice.cpp52 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()
DSupportLibraryWrapper.cpp21 namespace sl_wrapper { namespace
/packages/modules/NeuralNetworks/runtime/test/
DSupportLibraryTestUtils.h35 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;
DGeneratedTestUtils.h38 namespace test_wrapper = android::nn::sl_wrapper;
58 GeneratedModel(const NnApiSupportLibrary* nnapi) : sl_wrapper::Model(nnapi) {} in GeneratedModel()
DSupportLibraryTestGenerated.cpp61 using namespace sl_wrapper;