useGpu

suspend fun useGpu(context: Context, model: AiModel): Boolean(source)

True when model should run on the GPU. Checks on first call (up to two minutes).


suspend fun useGpu(context: Context, target: GpuCheck.Target): Boolean(source)

True when target should run on the GPU. Checks on first call (up to two minutes).