ANeuralNetworksCompilation_setPreference

Sets the execution preference.

<p>Provides guidance to the runtime when trade-offs are possible.</p>

See {@link ANeuralNetworksCompilation} for information on multithreaded usage.

Available since API level 27.

@param compilation The compilation to be modified. @param preference Either {@link PREFER_LOW_POWER}, {@link PREFER_SINGLE_FAST_ANSWER}, or {@link PREFER_SUSTAINED_SPEED}.

@return ANEURALNETWORKS_NO_ERROR if successful.

version(Android)
extern (C) @system nothrow @nogc
int
ANeuralNetworksCompilation_setPreference

Meta