Home
last modified time | relevance | path

Searched refs:NnApiSupportLibrary (Results 1 – 14 of 14) sorted by relevance

/aosp12/packages/modules/NeuralNetworks/shim_and_sl/
H A DSupportLibrary.cpp27 NnApiSupportLibrary::NnApiSupportLibrary(const NnApiSLDriverImplFL5& impl, void* libHandle) in NnApiSupportLibrary() function in NnApiSupportLibrary
32 NnApiSupportLibrary::~NnApiSupportLibrary() { in ~NnApiSupportLibrary()
39 std::unique_ptr<const NnApiSupportLibrary> loadNnApiSupportLibrary(const std::string& libName) { in loadNnApiSupportLibrary()
53 std::unique_ptr<const NnApiSupportLibrary> loadNnApiSupportLibrary(void* libHandle) { in loadNnApiSupportLibrary()
73 return std::make_unique<NnApiSupportLibrary>(*reinterpret_cast<NnApiSLDriverImplFL5*>(impl), in loadNnApiSupportLibrary()
H A DShimDeviceManager.cpp84 const std::shared_ptr<const NnApiSupportLibrary>& nnapi) { in getNamedDevices()
139 const std::shared_ptr<const NnApiSupportLibrary> nnapi = in registerDevices()
140 std::make_shared<const NnApiSupportLibrary>( in registerDevices()
H A DShimDevice.cpp101 Capabilities getCapabilities(const NnApiSupportLibrary* nnapi, ANeuralNetworksDevice* device) { in getCapabilities()
135 NumberOfCacheFiles getNumberOfCacheFilesNeeded(const NnApiSupportLibrary* nnapi, in getNumberOfCacheFilesNeeded()
147 std::vector<Extension> getVendorExtensions(const NnApiSupportLibrary* nnapi, in getVendorExtensions()
181 ShimDevice::ShimDevice(std::shared_ptr<const NnApiSupportLibrary> nnapi, in ShimDevice()
194 ShimBuffer(const NnApiSupportLibrary* nnApi, const ::android::nn::Dimensions initialDimensions, in ShimBuffer()
313 const NnApiSupportLibrary* mNnApi;
H A DShimConverter.cpp47 const NnApiSupportLibrary* nnapi, in convertSubgraphFromHAL()
355 std::optional<ShimConvertedModel> convertFromHAL(const NnApiSupportLibrary* nnapi, in convertFromHAL()
415 const NnApiSupportLibrary* nnapi, const neuralnetworks::Memory& pool) { in convertFromHAL()
/aosp12/packages/modules/NeuralNetworks/shim_and_sl/include/
H A DSupportLibrary.h50 struct NnApiSupportLibrary : NnApiSLDriverImplFL5 { struct
51 NnApiSupportLibrary(const NnApiSLDriverImplFL5& impl, void* libHandle);
52 ~NnApiSupportLibrary();
62 std::unique_ptr<const NnApiSupportLibrary> loadNnApiSupportLibrary(const std::string& libName);
63 std::unique_ptr<const NnApiSupportLibrary> loadNnApiSupportLibrary(void* libHandle);
H A DSupportLibraryWrapper.h51 Memory(const NnApiSupportLibrary* nnapi, ANeuralNetworksMemory* memory) in Memory()
55 Memory(const NnApiSupportLibrary* nnapi, size_t size, int protect, int fd, size_t offset,
70 Memory(const NnApiSupportLibrary* nnapi, ANeuralNetworksMemoryDesc* desc, size_t size) in Memory()
131 const NnApiSupportLibrary* mNnApi = nullptr;
141 Model(const NnApiSupportLibrary* nnapi) : mNnApi(nnapi) { in Model()
332 const NnApiSupportLibrary* mNnApi = nullptr;
355 const NnApiSupportLibrary* nnapi, const Model* model, in createForDevices()
466 Compilation(const NnApiSupportLibrary* nnapi, ANeuralNetworksCompilation* compilation) in Compilation()
469 const NnApiSupportLibrary* mNnApi = nullptr;
475 Execution(const NnApiSupportLibrary* nnapi, const Compilation* compilation) in Execution()
[all …]
H A DShimConverter.h51 std::optional<ShimConvertedModel> convertFromHAL(const NnApiSupportLibrary* nnapi,
56 const NnApiSupportLibrary* nnapi, const neuralnetworks::Memory& pool);
H A DShimDevice.h40 ShimDevice(std::shared_ptr<const NnApiSupportLibrary>, ANeuralNetworksDevice*,
68 std::shared_ptr<const NnApiSupportLibrary> mNnapi;
H A DShimPreparedModel.h33 ShimPreparedModel(std::shared_ptr<const NnApiSupportLibrary> nnapi, in ShimPreparedModel()
69 std::shared_ptr<const NnApiSupportLibrary> mNnapi;
/aosp12/packages/modules/NeuralNetworks/runtime/include/
H A DNeuralNetworksWrapper.h188 Memory(const NnApiSupportLibrary* nnapi, ANeuralNetworksMemory* memory) in Memory()
201 Memory(const NnApiSupportLibrary* nnapi, AHardwareBuffer* buffer) : mNnApi(nnapi) {
243 const NnApiSupportLibrary* mNnApi = nullptr;
252 Model(const NnApiSupportLibrary* nnapi) : mNnApi(nnapi) {
364 const NnApiSupportLibrary* mNnApi = nullptr;
378 Event(const NnApiSupportLibrary* nnapi) : mNnApi(nnapi) {}
379 Event(const NnApiSupportLibrary* nnapi, int syncFd) : mNnApi(nnapi) {
440 const NnApiSupportLibrary* mNnApi = nullptr;
459 const NnApiSupportLibrary* nnapi, const Model* model,
570 const NnApiSupportLibrary* mNnApi = nullptr;
[all …]
/aosp12/packages/modules/NeuralNetworks/runtime/test/
H A DGeneratedTestUtils.h58 GeneratedModel(const NnApiSupportLibrary* nnapi) : sl_wrapper::Model(nnapi) {} in GeneratedModel()
87 void createModel(const NnApiSupportLibrary* nnapi, const test_helper::TestModel& testModel,
89 inline void createModel(const NnApiSupportLibrary* nnapi, const test_helper::TestModel& testModel, in createModel()
H A DGeneratedTestUtils.cpp59 static std::unique_ptr<MemoryAHWB> create(const NnApiSupportLibrary* nnapi, uint32_t size) { in create()
96 MemoryAHWB(const NnApiSupportLibrary* nnapi, AHardwareBuffer* ahwb, void* buffer) in create()
107 static std::unique_ptr<MemoryAHWB> createConstantReferenceMemory(const NnApiSupportLibrary* nnapi,
188 void createModel(const NnApiSupportLibrary* nnapi, const TestModel& testModel,
H A DSupportLibraryTestUtils.h39 static std::unique_ptr<TestAshmem> createFrom(const NnApiSupportLibrary* nnapi, in createFrom()
45 static std::unique_ptr<TestAshmem> createFrom(const NnApiSupportLibrary* nnapi, in createFrom()
H A DSupportLibraryTestGenerated.cpp94 std::unique_ptr<const NnApiSupportLibrary> mNnApi =