Home
last modified time | relevance | path

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

/packages/modules/NeuralNetworks/shim_and_sl/include/
DSupportLibrary.h48 struct NnApiSupportLibrary { struct
49 NnApiSupportLibrary(const NnApiSLDriverImplFL5& impl, void* libHandle) in NnApiSupportLibrary() function
55 NnApiSupportLibrary(const NnApiSLDriverImplFL8& impl, void* libHandle) in NnApiSupportLibrary() argument
57 ~NnApiSupportLibrary() { in ~NnApiSupportLibrary() argument
101 std::unique_ptr<const NnApiSupportLibrary> loadNnApiSupportLibrary(const std::string& libName);
102 std::unique_ptr<const NnApiSupportLibrary> loadNnApiSupportLibrary(void* libHandle);
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,
63 Memory(const NnApiSupportLibrary* nnapi, AHardwareBuffer* buffer, bool ownAHWB, size_t size) in Memory()
70 Memory(const NnApiSupportLibrary* nnapi, ANeuralNetworksMemoryDesc* desc, size_t size) in Memory()
132 const NnApiSupportLibrary* mNnApi = nullptr;
142 Model(const NnApiSupportLibrary* nnapi) : mNnApi(nnapi) { in Model()
334 const NnApiSupportLibrary* mNnApi = nullptr;
351 static std::pair<Result, Compilation> createForDevice(const NnApiSupportLibrary* nnapi, in createForDevice()
357 const NnApiSupportLibrary* nnapi, const Model* model, in createForDevices()
479 Compilation(const NnApiSupportLibrary* nnapi, ANeuralNetworksCompilation* compilation) in Compilation()
[all …]
DShimConverter.h51 std::optional<ShimConvertedModel> convertFromHAL(const NnApiSupportLibrary* nnapi,
56 const NnApiSupportLibrary* nnapi, const neuralnetworks::Memory& pool);
DShimDevice.h40 ShimDevice(std::shared_ptr<const NnApiSupportLibrary>, ANeuralNetworksDevice*,
79 std::shared_ptr<const NnApiSupportLibrary> mNnapi;
DShimPreparedModel.h34 ShimPreparedModel(std::shared_ptr<const NnApiSupportLibrary> nnapi, in ShimPreparedModel()
96 std::shared_ptr<const NnApiSupportLibrary> mNnapi;
/packages/modules/NeuralNetworks/shim_and_sl/
DSupportLibrary.cpp27 std::unique_ptr<const NnApiSupportLibrary> loadNnApiSupportLibrary(const std::string& libName) { in loadNnApiSupportLibrary()
41 std::unique_ptr<const NnApiSupportLibrary> loadNnApiSupportLibrary(void* libHandle) { in loadNnApiSupportLibrary()
62 return std::make_unique<NnApiSupportLibrary>(*reinterpret_cast<NnApiSLDriverImplFL5*>(impl), in loadNnApiSupportLibrary()
66 return std::make_unique<NnApiSupportLibrary>(*reinterpret_cast<NnApiSLDriverImplFL6*>(impl), in loadNnApiSupportLibrary()
70 return std::make_unique<NnApiSupportLibrary>(*reinterpret_cast<NnApiSLDriverImplFL7*>(impl), in loadNnApiSupportLibrary()
74 return std::make_unique<NnApiSupportLibrary>(*reinterpret_cast<NnApiSLDriverImplFL8*>(impl), in loadNnApiSupportLibrary()
DShimDeviceManager.cpp84 const std::shared_ptr<const NnApiSupportLibrary>& nnapi) { in getNamedDevices()
135 std::shared_ptr<const NnApiSupportLibrary> nnapi; in registerDevices()
138 nnapi = std::make_unique<NnApiSupportLibrary>( in registerDevices()
142 nnapi = std::make_unique<NnApiSupportLibrary>( in registerDevices()
146 nnapi = std::make_unique<NnApiSupportLibrary>( in registerDevices()
150 nnapi = std::make_unique<NnApiSupportLibrary>( in registerDevices()
DShimDevice.cpp102 Capabilities getCapabilities(const NnApiSupportLibrary* nnapi, ANeuralNetworksDevice* device) { in getCapabilities()
136 NumberOfCacheFiles getNumberOfCacheFilesNeeded(const NnApiSupportLibrary* nnapi, in getNumberOfCacheFilesNeeded()
148 std::vector<Extension> getVendorExtensions(const NnApiSupportLibrary* nnapi, in getVendorExtensions()
183 ShimDevice::ShimDevice(std::shared_ptr<const NnApiSupportLibrary> nnapi, in ShimDevice()
196 ShimBuffer(const NnApiSupportLibrary* nnApi, const ::android::nn::Dimensions initialDimensions, in ShimBuffer()
314 const NnApiSupportLibrary* mNnApi;
DShimConverter.cpp47 const NnApiSupportLibrary* nnapi, in convertSubgraphFromHAL()
369 std::optional<ShimConvertedModel> convertFromHAL(const NnApiSupportLibrary* nnapi, in convertFromHAL()
429 const NnApiSupportLibrary* nnapi, const neuralnetworks::Memory& pool) { in convertFromHAL()
DShimPreparedModel.cpp257 const std::shared_ptr<const NnApiSupportLibrary>& nnapi, in executeFencedInternal()
542 std::shared_ptr<const NnApiSupportLibrary> nnapi,
555 std::shared_ptr<const NnApiSupportLibrary> mNnapi;
585 std::shared_ptr<const NnApiSupportLibrary> nnapi, in ShimExecution()
/packages/modules/NeuralNetworks/runtime/include/
DNeuralNetworksWrapper.h188 Memory(const NnApiSupportLibrary* nnapi, ANeuralNetworksMemory* memory) in Memory()
191 Memory(const NnApiSupportLibrary* nnapi, size_t size, int protect, int fd, size_t offset)
202 Memory(const NnApiSupportLibrary* nnapi, AHardwareBuffer* buffer) : mNnApi(nnapi) {
245 const NnApiSupportLibrary* mNnApi = nullptr;
254 Model(const NnApiSupportLibrary* nnapi) : mNnApi(nnapi) {
377 const NnApiSupportLibrary* mNnApi = nullptr;
391 Event(const NnApiSupportLibrary* nnapi) : mNnApi(nnapi) {}
392 Event(const NnApiSupportLibrary* nnapi, int syncFd) : mNnApi(nnapi) {
453 const NnApiSupportLibrary* mNnApi = nullptr;
466 static std::pair<Result, Compilation> createForDevice(const NnApiSupportLibrary* nnapi,
[all …]
/packages/modules/NeuralNetworks/runtime/test/
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()
DGeneratedTestUtils.cpp62 static std::unique_ptr<MemoryWithPointer> create(const NnApiSupportLibrary* nnapi, in create()
95 MemoryWithPointer(const NnApiSupportLibrary* nnapi, size_t size, int protect, int fd, in create()
109 const NnApiSupportLibrary* nnapi, const TestModel& testModel) {
189 void createModel(const NnApiSupportLibrary* nnapi, const TestModel& testModel,
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()
DSupportLibraryTestGenerated.cpp104 std::unique_ptr<const NnApiSupportLibrary> mNnApi;