GpuDelegateOptions constructor

GpuDelegateOptions({
  1. bool allowPrecisionLoss = false,
  2. TFLGpuDelegateWaitType waitType = TFLGpuDelegateWaitType.passive,
  3. bool enableQuantization = true,
})

Implementation

factory GpuDelegateOptions({
  bool allowPrecisionLoss = false,
  TFLGpuDelegateWaitType waitType = TFLGpuDelegateWaitType.passive,
  bool enableQuantization = true,
}) {
  return GpuDelegateOptions._(TFLGpuDelegateOptions.allocate(
    allowPrecisionLoss,
    waitType,
    enableQuantization,
  ));
}