PreferenceCode

Execution preferences.

Available since API level 27.

Values

ValueMeaning
ANEURALNETWORKS_PREFER_LOW_POWER0

Prefer executing in a way that minimizes battery drain. This is desirable for compilations that will be executed often.

ANEURALNETWORKS_PREFER_FAST_SINGLE_ANSWER1

Prefer returning a single answer as fast as possible, even if this causes more power consumption.

ANEURALNETWORKS_PREFER_SUSTAINED_SPEED2

Prefer maximizing the throughput of successive frames, for example when processing successive frames coming from the camera.

Meta