Closed MatthewARM closed 10 months ago
See: https://source.android.com/devices/neural-networks/device-discovery#implement
"Other" might be hard to implement - it says "A driver with a heterogeneous interface should also expose separate IDevice interfaces that correspond to individual devices to allow an application to choose from those devices."
@jameo
@Jameo
In getType() at:
https://github.com/ARM-software/android-nn-driver/blob/7e4f7b181908478b3f9c0a23dd4a26b476542e30/1.2/ArmnnDriver.hpp#L133 and https://github.com/ARM-software/android-nn-driver/blob/7e4f7b181908478b3f9c0a23dd4a26b476542e30/1.3/ArmnnDriver.hpp#L248
they always return DeviceType::CPU, whereas they should return 'Other' (for a heterogenous interface) or check the service startup flags to find out which backend is preferred (e.g. GPU).