/packages/modules/NeuralNetworks/shim_and_sl/include/ |
D | SupportLibrary.h | 48 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);
|
D | SupportLibraryWrapper.h | 51 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 …]
|
D | ShimConverter.h | 51 std::optional<ShimConvertedModel> convertFromHAL(const NnApiSupportLibrary* nnapi, 56 const NnApiSupportLibrary* nnapi, const neuralnetworks::Memory& pool);
|
D | ShimDevice.h | 40 ShimDevice(std::shared_ptr<const NnApiSupportLibrary>, ANeuralNetworksDevice*, 79 std::shared_ptr<const NnApiSupportLibrary> mNnapi;
|
D | ShimPreparedModel.h | 34 ShimPreparedModel(std::shared_ptr<const NnApiSupportLibrary> nnapi, in ShimPreparedModel() 96 std::shared_ptr<const NnApiSupportLibrary> mNnapi;
|
/packages/modules/NeuralNetworks/shim_and_sl/ |
D | SupportLibrary.cpp | 27 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()
|
D | ShimDeviceManager.cpp | 84 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()
|
D | ShimDevice.cpp | 102 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;
|
D | ShimConverter.cpp | 47 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()
|
D | ShimPreparedModel.cpp | 257 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/ |
D | NeuralNetworksWrapper.h | 188 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/ |
D | GeneratedTestUtils.h | 58 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()
|
D | GeneratedTestUtils.cpp | 62 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,
|
D | SupportLibraryTestUtils.h | 39 static std::unique_ptr<TestAshmem> createFrom(const NnApiSupportLibrary* nnapi, in createFrom() 45 static std::unique_ptr<TestAshmem> createFrom(const NnApiSupportLibrary* nnapi, in createFrom()
|
D | SupportLibraryTestGenerated.cpp | 104 std::unique_ptr<const NnApiSupportLibrary> mNnApi;
|