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.h35 ::android::nn::sl_wrapper::Compilation compilation, in ShimPreparedModel()
36 std::vector<::android::nn::sl_wrapper::Model> mainAndReferencedModels, in ShimPreparedModel()
37 std::vector<std::unique_ptr<::android::nn::sl_wrapper::Memory>> memoryPools, in ShimPreparedModel()
58 const ::android::nn::sl_wrapper::Compilation& getCompilation() const { return mCompilation; } in getCompilation()
59 const ::android::nn::sl_wrapper::Model& getMainModel() const { in getMainModel()
66 ::android::nn::sl_wrapper::Execution* execution,
67 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>>* requestMemoryPools);
72 ::android::nn::sl_wrapper::Compilation mCompilation;
73 std::vector<::android::nn::sl_wrapper::Model> mMainAndReferencedModels;
74 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/
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()
59 ::android::nn::sl_wrapper::Model resultModel(nnapi); in convertSubgraphFromHAL()
372 std::vector<std::unique_ptr<::android::nn::sl_wrapper::Memory>> memoryPools; in convertFromHAL()
375 std::unique_ptr<::android::nn::sl_wrapper::Memory> memory = convertFromHAL(nnapi, pool); in convertFromHAL()
384 std::vector<std::optional<::android::nn::sl_wrapper::Model>> allModels(model.referenced.size() + in convertFromHAL()
400 std::vector<::android::nn::sl_wrapper::Model> result; in convertFromHAL()
414 std::unique_ptr<::android::nn::sl_wrapper::Memory> convertFromHAL( in convertFromHAL()
423 auto memory = std::make_unique<::android::nn::sl_wrapper::Memory>( in convertFromHAL()
[all …]
DShimPreparedModel.cpp46 ::android::nn::sl_wrapper::Execution* execution, in parseInputs()
47 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>>* requestMemoryPools) { in parseInputs()
52 std::shared_ptr<::android::nn::sl_wrapper::Memory> mem = in parseInputs()
151 ::android::nn::sl_wrapper::Execution execution, Event e, in ShimFencedExecutionCallback()
152 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>> memoryPools, in ShimFencedExecutionCallback()
207 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>> mMemoryPools;
208 ::android::nn::sl_wrapper::Execution mExecution;
223 auto execution = ::android::nn::sl_wrapper::Execution(mNnapi.get(), &mCompilation); in executeFenced()
224 std::vector<std::shared_ptr<::android::nn::sl_wrapper::Memory>> requestMemoryPools; in executeFenced()
277 std::make_unique<::android::nn::sl_wrapper::Execution>(mNnapi.get(), &mCompilation); in executeSynchronously()
[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.cpp51 using namespace ::android::nn::sl_wrapper;
196 std::shared_ptr<::android::nn::sl_wrapper::Memory> memory, in ShimBuffer()
314 std::shared_ptr<::android::nn::sl_wrapper::Memory> mMemory;
438 std::make_shared<::android::nn::sl_wrapper::Memory>(mNnapi.get(), slDesc, *typeSize); in allocate()
561 auto compilation = ::android::nn::sl_wrapper::Compilation::createForDevice( in prepareModel()
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.cpp56 using namespace sl_wrapper;