Home
last modified time | relevance | path

Searched defs:nnapi (Results 1 – 10 of 10) sorted by relevance

/packages/modules/NeuralNetworks/runtime/test/
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()
DGeneratedTestUtils.h58 GeneratedModel(const NnApiSupportLibrary* nnapi) : sl_wrapper::Model(nnapi) {} in GeneratedModel()
89 inline void createModel(const NnApiSupportLibrary* nnapi, const test_helper::TestModel& testModel, in createModel()
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,
DTestGpuNnapi.cpp805 auto nnapi = std::make_unique<NnapiExecutor>(input, output); in create() local
952 auto nnapi = NnapiExecutor<dataType>::create(kDevice, mGpuOutput, mNnapiOutput); in runTest() local
/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)
201 Memory(const NnApiSupportLibrary* nnapi, AHardwareBuffer* buffer) : mNnApi(nnapi) {
252 Model(const NnApiSupportLibrary* nnapi) : mNnApi(nnapi) {
378 Event(const NnApiSupportLibrary* nnapi) : mNnApi(nnapi) {}
379 Event(const NnApiSupportLibrary* nnapi, int syncFd) : mNnApi(nnapi) {
453 static std::pair<Result, Compilation> createForDevice(const NnApiSupportLibrary* nnapi,
459 const NnApiSupportLibrary* nnapi, const Model* model,
566 Compilation(const NnApiSupportLibrary* nnapi, ANeuralNetworksCompilation* compilation)
580 Execution(const NnApiSupportLibrary* nnapi, const Compilation* compilation) : mNnApi(nnapi) {
/packages/modules/NeuralNetworks/shim_and_sl/include/
DSupportLibraryWrapper.h51 Memory(const NnApiSupportLibrary* nnapi, ANeuralNetworksMemory* memory) in Memory()
57 : mNnApi(nnapi), mOwnedFd(ownsFd ? std::optional<int>{fd} : std::nullopt), mSize(size) { in mNnApi() argument
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()
141 Model(const NnApiSupportLibrary* nnapi) : mNnApi(nnapi) { in Model()
349 static std::pair<Result, Compilation> createForDevice(const NnApiSupportLibrary* nnapi, in createForDevice()
355 const NnApiSupportLibrary* nnapi, const Model* model, in createForDevices()
466 Compilation(const NnApiSupportLibrary* nnapi, ANeuralNetworksCompilation* compilation) in Compilation()
475 Execution(const NnApiSupportLibrary* nnapi, const Compilation* compilation) in Execution()
DShimPreparedModel.h33 ShimPreparedModel(std::shared_ptr<const NnApiSupportLibrary> nnapi, in ShimPreparedModel()
/packages/modules/NeuralNetworks/shim_and_sl/
DShimDeviceManager.cpp84 const std::shared_ptr<const NnApiSupportLibrary>& nnapi) { in getNamedDevices()
139 const std::shared_ptr<const NnApiSupportLibrary> nnapi = in registerDevices() local
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()
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()