Home
last modified time | relevance | path

Searched refs:mNnApi (Results 1 – 4 of 4) sorted by relevance

/packages/modules/NeuralNetworks/shim_and_sl/include/
DSupportLibraryWrapper.h52 : mNnApi(nnapi), mMemory(memory), mSize(0) {} in Memory()
57 : mNnApi(nnapi), mOwnedFd(ownsFd ? std::optional<int>{fd} : std::nullopt), mSize(size) { in mNnApi() function
58 mValid = mNnApi->ANeuralNetworksMemory_createFromFd(size, protect, fd, offset, &mMemory) ==
64 : mNnApi(nnapi), mOwnedAHWB(ownAHWB ? buffer : nullptr), mSize(size) { in Memory()
65 mValid = mNnApi->ANeuralNetworksMemory_createFromAHardwareBuffer(buffer, &mMemory) == in Memory()
71 : mNnApi(nnapi), mSize(size) { in Memory()
72 mValid = mNnApi->ANeuralNetworksMemory_createFromDesc(desc, &mMemory) == in Memory()
78 mNnApi->ANeuralNetworksMemory_free(mMemory); in ~Memory()
101 mNnApi->ANeuralNetworksMemory_free(mMemory);
112 mNnApi = other.mNnApi;
[all …]
/packages/modules/NeuralNetworks/runtime/test/
DSupportLibraryTestGenerated.cpp94 std::unique_ptr<const NnApiSupportLibrary> mNnApi = member in android::nn::generated_tests::GeneratedTests
131 EXPECT_EQ(mNnApi->ANeuralNetworksModel_getSupportedOperationsForDevices( in checkSupported()
191 EXPECT_EQ(mNnApi->SL_ANeuralNetworksDevice_getNumberOfCacheFilesNeeded( in compileModel()
202 auto resultCompilation1 = Compilation::createForDevice(mNnApi.get(), &model, device); in compileModel()
215 auto resultCompilation2 = Compilation::createForDevice(mNnApi.get(), &model, device); in compileModel()
230 auto resultCompilation = Compilation::createForDevice(mNnApi.get(), &model, device); in compileModel()
257 EXPECT_EQ(mNnApi->ANeuralNetworksMemoryDesc_create(&desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput()
258 EXPECT_EQ(mNnApi->ANeuralNetworksMemoryDesc_addInputRole(desc, compilation.getHandle(), index, in createDeviceMemoryForInput()
261 EXPECT_EQ(mNnApi->ANeuralNetworksMemoryDesc_finish(desc), ANEURALNETWORKS_NO_ERROR); in createDeviceMemoryForInput()
263 mNnApi->ANeuralNetworksMemory_createFromDesc(desc, &memory); in createDeviceMemoryForInput()
[all …]
/packages/modules/NeuralNetworks/runtime/include/
DNeuralNetworksWrapper.h179 #define NNAPI_CALL(apiCall) mNnApi->apiCall
189 : mNnApi(nnapi), mMemory(memory) {} in Memory()
192 : mNnApi(nnapi) {
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) {
410 mNnApi = other.mNnApi;
[all …]
/packages/modules/NeuralNetworks/shim_and_sl/
DShimDevice.cpp200 mNnApi(nnApi), in ShimBuffer()
251 auto memory = convertFromHAL(mNnApi, src); in copyFrom()
286 auto memory = convertFromHAL(mNnApi, dst); in copyTo()
313 const NnApiSupportLibrary* mNnApi; member in aidl::android::hardware::neuralnetworks::ShimBuffer