Home
last modified time | relevance | path

Searched refs:ANeuralNetworksDevice (Results 1 – 25 of 26) sorted by relevance

12

/packages/modules/NeuralNetworks/shim_and_sl/public/
DNeuralNetworksSupportLibraryImpl.h184 int SL_ANeuralNetworksDevice_getNumberOfCacheFilesNeeded(const ANeuralNetworksDevice* device,
203 int SL_ANeuralNetworksDevice_getPerformanceInfo(const ANeuralNetworksDevice* device,
223 const ANeuralNetworksDevice* device, void* context,
237 int SL_ANeuralNetworksDevice_getVendorExtensionCount(const ANeuralNetworksDevice* device,
251 int SL_ANeuralNetworksDevice_getVendorExtensionName(const ANeuralNetworksDevice* device,
268 const ANeuralNetworksDevice* device, uint32_t vendorExtensionIndex, void* context,
330 const ANeuralNetworksDevice* const* devices,
432 int (*ANeuralNetworksDevice_getExtensionSupport)(const ANeuralNetworksDevice* device,
442 int (*ANeuralNetworksDevice_getFeatureLevel)(const ANeuralNetworksDevice* device,
451 int (*ANeuralNetworksDevice_getName)(const ANeuralNetworksDevice* device, const char** name);
[all …]
/packages/modules/NeuralNetworks/runtime/include/
DNeuralNetworks.h360 int ANeuralNetworks_getDevice(uint32_t devIndex, ANeuralNetworksDevice** device)
380 int ANeuralNetworksDevice_getName(const ANeuralNetworksDevice* device, const char** name)
399 int ANeuralNetworksDevice_getType(const ANeuralNetworksDevice* device, int32_t* type)
429 int ANeuralNetworksDevice_getVersion(const ANeuralNetworksDevice* device, const char** version)
456 int ANeuralNetworksDevice_getFeatureLevel(const ANeuralNetworksDevice* device,
473 int ANeuralNetworksDevice_wait(const ANeuralNetworksDevice* device) __NNAPI_INTRODUCED_IN(30);
493 const ANeuralNetworksModel* model, const ANeuralNetworksDevice* const* devices,
524 const ANeuralNetworksDevice* const* devices,
DNeuralNetworksTypes.h6328 typedef struct ANeuralNetworksDevice ANeuralNetworksDevice; typedef
DNeuralNetworksExtensions.h51 int ANeuralNetworksDevice_getExtensionSupport(const ANeuralNetworksDevice* device,
DNeuralNetworksWrapper.h455 const ANeuralNetworksDevice* device) {
460 const std::vector<const ANeuralNetworksDevice*>& devices) {
/packages/modules/NeuralNetworks/runtime/test/fibonacci_extension/
DFibonacciExtensionTest.cpp61 ANeuralNetworksDevice* device = nullptr; in SetUp()
94 const std::vector<ANeuralNetworksDevice*> devices) { in checkSupportedOperations()
120 ANeuralNetworksDevice* mFibonacciDevice = nullptr;
121 ANeuralNetworksDevice* mCpuDevice = nullptr;
122 std::vector<ANeuralNetworksDevice*> mDevices; // Fibonacci and CPU devices.
123 std::vector<ANeuralNetworksDevice*> mAllDevices;
348 for (ANeuralNetworksDevice* device : mAllDevices) { in TEST_F()
/packages/modules/NeuralNetworks/shim_and_sl/
DShimDeviceManager.cpp83 std::unordered_map<std::string, ANeuralNetworksDevice*> getNamedDevices( in getNamedDevices()
91 std::unordered_map<std::string, ANeuralNetworksDevice*> nameToDevice; in getNamedDevices()
93 ANeuralNetworksDevice* device; in getNamedDevices()
154 ANeuralNetworksDevice* device = iter->second; in registerDevices()
DShimDevice.cpp101 Capabilities getCapabilities(const NnApiSupportLibrary* nnapi, ANeuralNetworksDevice* device) { in getCapabilities()
136 ANeuralNetworksDevice* device) { in getNumberOfCacheFilesNeeded()
148 ANeuralNetworksDevice* device) { in getVendorExtensions()
182 ANeuralNetworksDevice* device, std::string serviceName) in ShimDevice()
/packages/modules/NeuralNetworks/runtime/
DNeuralNetworks.cpp654 int ANeuralNetworks_getDevice(uint32_t devIndex, ANeuralNetworksDevice** device) { in ANeuralNetworks_getDevice()
664 *device = reinterpret_cast<ANeuralNetworksDevice*>(devices.at(devIndex).get()); in ANeuralNetworks_getDevice()
668 int ANeuralNetworksDevice_getName(const ANeuralNetworksDevice* device, const char** name) { in ANeuralNetworksDevice_getName()
678 int ANeuralNetworksDevice_getVersion(const ANeuralNetworksDevice* device, const char** version) { in ANeuralNetworksDevice_getVersion()
688 int ANeuralNetworksDevice_getType(const ANeuralNetworksDevice* device, int32_t* type) { in ANeuralNetworksDevice_getType()
702 int ANeuralNetworksDevice_getFeatureLevel(const ANeuralNetworksDevice* device, in ANeuralNetworksDevice_getFeatureLevel()
708 Device* d = reinterpret_cast<Device*>(const_cast<ANeuralNetworksDevice*>(device)); in ANeuralNetworksDevice_getFeatureLevel()
717 int ANeuralNetworksDevice_wait(const ANeuralNetworksDevice* device) { in ANeuralNetworksDevice_wait()
727 const ANeuralNetworksModel* model, const ANeuralNetworksDevice* const* devices, in ANeuralNetworksModel_getSupportedOperationsForDevices()
764 Device* d = reinterpret_cast<Device*>(const_cast<ANeuralNetworksDevice*>(devices[i])); in ANeuralNetworksModel_getSupportedOperationsForDevices()
[all …]
DManager.h221 bool forTest_isCpuDevice(const ANeuralNetworksDevice* device) const { in forTest_isCpuDevice()
/packages/modules/NeuralNetworks/runtime/test/
DTestExtensions.cpp93 ANeuralNetworksDevice* getDeviceByName(const std::string& name) { in getDeviceByName()
94 ANeuralNetworksDevice* result = nullptr; in getDeviceByName()
99 ANeuralNetworksDevice* device = nullptr; in getDeviceByName()
119 ANeuralNetworksDevice* mDevice;
DTestFree.cpp57 std::vector<ANeuralNetworksDevice*> createDeviceList() { in createDeviceList()
58 std::vector<ANeuralNetworksDevice*> devices; in createDeviceList()
63 ANeuralNetworksDevice* device = nullptr; in createDeviceList()
DTestRemoveDefaultArguments.cpp172 ANeuralNetworksDevice* getDeviceByName(const std::string& name) { in getDeviceByName()
173 ANeuralNetworksDevice* result = nullptr; in getDeviceByName()
178 ANeuralNetworksDevice* device = nullptr; in getDeviceByName()
191 ANeuralNetworksDevice* mTestDevice;
DSupportLibraryTestGenerated.cpp73 bool checkSupported(const Model& model, ANeuralNetworksDevice* device);
74 std::optional<Compilation> compileModel(const Model& model, ANeuralNetworksDevice* device);
125 bool GeneratedTests::checkSupported(const Model& model, ANeuralNetworksDevice* device) { in checkSupported()
154 ANeuralNetworksDevice* device) { in compileModel()
394 ANeuralNetworksDevice* device = nullptr; in executeOnce()
441 ANeuralNetworksDevice* device = nullptr; in executeMultithreadedSharedCompilation()
DTestCompilationCaching.cpp295 void getDeviceWithName(std::string_view deviceName, const ANeuralNetworksDevice** outputDevice) { in getDeviceWithName()
302 ANeuralNetworksDevice* device = nullptr; in getDeviceWithName()
343 const ANeuralNetworksDevice* device = nullptr; in TEST_P()
382 const ANeuralNetworksDevice* device = nullptr; in compileModel()
DTestGpuNnapi.cpp237 using NameAndDevice = std::pair<const char*, const ANeuralNetworksDevice*>;
247 ANeuralNetworksDevice* device; in getNnapiDevices()
803 static std::unique_ptr<NnapiExecutor> create(const ANeuralNetworksDevice* device, in create()
825 void initialize(const ANeuralNetworksDevice* device) { in initialize()
1001 const ANeuralNetworksDevice* kDevice = GetParam().second;
DTestValidation.cpp874 ANeuralNetworksDevice* device; in TEST_F()
887 ANeuralNetworksDevice* invalidDevices[2] = {device, device}; in TEST_F()
915 ANeuralNetworksDevice* device; in TEST_F()
930 ANeuralNetworksDevice* invalidDevices[2] = {device, device}; in TEST_F()
2708 ANeuralNetworksDevice* device = nullptr; in TEST()
2718 static void deviceStringCheck(std::function<int(const ANeuralNetworksDevice*, const char**)> func) { in deviceStringCheck() argument
2725 ANeuralNetworksDevice* device; in deviceStringCheck()
2744 ANeuralNetworksDevice* device = nullptr; in TEST()
2765 ANeuralNetworksDevice* device; in TEST()
2790 ANeuralNetworksDevice* device; in TEST()
[all …]
DTestMemoryDomain.cpp196 std::map<std::string, ANeuralNetworksDevice*> deviceMap; in createCompilation()
200 ANeuralNetworksDevice* device = nullptr; in createCompilation()
206 std::vector<const ANeuralNetworksDevice*> devices(deviceNames.size()); in createCompilation()
DTestUpdatability.cpp39 ANeuralNetworksDevice* device; in TEST_F()
DTestNeuralNetworksWrapper.h253 const ANeuralNetworksDevice* device) { in createForDevice()
257 const Model* model, const std::vector<const ANeuralNetworksDevice*>& devices) { in createForDevices()
DTestExecution.cpp624 std::vector<ANeuralNetworksDevice*> mDevices; in TestIntrospectionCompilation()
630 ANeuralNetworksDevice* device = nullptr; in TestIntrospectionCompilation()
/packages/modules/NeuralNetworks/shim_and_sl/include/
DShimDevice.h40 ShimDevice(std::shared_ptr<const NnApiSupportLibrary>, ANeuralNetworksDevice*,
71 ANeuralNetworksDevice* mDevice;
DSupportLibraryWrapper.h351 const ANeuralNetworksDevice* device) { in createForDevice()
356 const std::vector<const ANeuralNetworksDevice*>& devices) { in createForDevices()
/packages/modules/NeuralNetworks/runtime/test/fuzzing/
DTestRandomGraph.cpp160 ANeuralNetworksDevice* device = nullptr; in SetUpTestCase()
430 static std::map<std::string, ANeuralNetworksDevice*> mDevices;
451 std::map<std::string, ANeuralNetworksDevice*> RandomGraphTest::mDevices;
/packages/modules/NeuralNetworks/tools/api/
DNeuralNetworksTypes.t677 * ANeuralNetworksDevice is an opaque type that represents a device.
684 typedef struct ANeuralNetworksDevice ANeuralNetworksDevice;

12