Home
last modified time | relevance | path

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

/packages/modules/NeuralNetworks/shim_and_sl/
DShimDevice.cpp185 : mNnapi(std::move(nnapi)), in ShimDevice()
189 mCapabilities(neuralnetworks::getCapabilities(mNnapi.get(), mDevice)), in ShimDevice()
190 mNumberOfCacheFiles(neuralnetworks::getNumberOfCacheFilesNeeded(mNnapi.get(), mDevice)), in ShimDevice()
191 mExtensions(neuralnetworks::getVendorExtensions(mNnapi.get(), mDevice)) {} in ShimDevice()
330 mNnapi->getFL5()->ANeuralNetworksMemoryDesc_create(&slDesc); in allocate()
332 [this, slDesc] { mNnapi->getFL5()->ANeuralNetworksMemoryDesc_free(slDesc); }); in allocate()
335 if (mNnapi->getFL5()->ANeuralNetworksMemoryDesc_setDimensions(slDesc, desc.dimensions.size(), in allocate()
373 auto result = mNnapi->getFL5()->ANeuralNetworksMemoryDesc_addInputRole( in allocate()
411 auto result = mNnapi->getFL5()->ANeuralNetworksMemoryDesc_addOutputRole( in allocate()
437 mNnapi->getFL5()->ANeuralNetworksMemoryDesc_finish(slDesc); in allocate()
[all …]
DShimPreparedModel.cpp58 convertFromHAL(mNnapi.get(), memoryPool); in parseInputs()
315 std::make_shared<::android::nn::sl_wrapper::Execution>(mNnapi.get(), &mCompilation); in executeFencedCommon()
323 return executeFencedInternal(mNnapi, execution, std::move(requestMemoryPools), waitFor, in executeFencedCommon()
412 std::make_shared<::android::nn::sl_wrapper::Execution>(mNnapi.get(), &mCompilation); in executeSynchronouslyCommon()
555 std::shared_ptr<const NnApiSupportLibrary> mNnapi; member in aidl::android::hardware::neuralnetworks::ShimExecution
566 std::make_shared<::android::nn::sl_wrapper::Execution>(mNnapi.get(), &mCompilation); in createReusableExecution()
579 mNnapi, std::move(wrapperExecution), std::move(requestMemoryPools), in createReusableExecution()
589 : mNnapi(std::move(nnapi)), in ShimExecution()
632 return executeFencedInternal(mNnapi, mExecution, kRequestMemoryPools, waitFor, durationNs, in executeFenced()
/packages/modules/NeuralNetworks/shim_and_sl/include/
DShimPreparedModel.h40 : mNnapi(nnapi), in ShimPreparedModel()
96 std::shared_ptr<const NnApiSupportLibrary> mNnapi; variable
DShimDevice.h79 std::shared_ptr<const NnApiSupportLibrary> mNnapi; variable