Searched refs:mNnapi (Results 1 – 4 of 4) sorted by relevance
/packages/modules/NeuralNetworks/shim_and_sl/ |
D | ShimDevice.cpp | 183 : mNnapi(std::move(nnapi)), in ShimDevice() 187 mCapabilities(neuralnetworks::getCapabilities(mNnapi.get(), mDevice)), in ShimDevice() 188 mNumberOfCacheFiles(neuralnetworks::getNumberOfCacheFilesNeeded(mNnapi.get(), mDevice)), in ShimDevice() 189 mExtensions(neuralnetworks::getVendorExtensions(mNnapi.get(), mDevice)) {} in ShimDevice() 329 mNnapi->ANeuralNetworksMemoryDesc_create(&slDesc); in allocate() 331 [this, slDesc] { mNnapi->ANeuralNetworksMemoryDesc_free(slDesc); }); in allocate() 334 if (mNnapi->ANeuralNetworksMemoryDesc_setDimensions(slDesc, desc.dimensions.size(), in allocate() 372 auto result = mNnapi->ANeuralNetworksMemoryDesc_addInputRole( in allocate() 410 auto result = mNnapi->ANeuralNetworksMemoryDesc_addOutputRole( in allocate() 436 mNnapi->ANeuralNetworksMemoryDesc_finish(slDesc); in allocate() [all …]
|
D | ShimPreparedModel.cpp | 53 convertFromHAL(mNnapi.get(), memoryPool); in parseInputs() 223 auto execution = ::android::nn::sl_wrapper::Execution(mNnapi.get(), &mCompilation); in executeFenced() 238 mNnapi->ANeuralNetworksEvent_createFromSyncFenceFd(e.get(), &r)); in executeFenced() 246 mNnapi->ANeuralNetworksEvent_free(const_cast<ANeuralNetworksEvent*>(dep)); in executeFenced() 253 Event e(mNnapi.get()); in executeFenced() 277 std::make_unique<::android::nn::sl_wrapper::Execution>(mNnapi.get(), &mCompilation); in executeSynchronously()
|
/packages/modules/NeuralNetworks/shim_and_sl/include/ |
D | ShimPreparedModel.h | 39 : mNnapi(nnapi), in ShimPreparedModel() 69 std::shared_ptr<const NnApiSupportLibrary> mNnapi; variable
|
D | ShimDevice.h | 68 std::shared_ptr<const NnApiSupportLibrary> mNnapi;
|