liteRtLmConstrainedDecodingRow function

LiteRtLmConstrainedDecodingRow liteRtLmConstrainedDecodingRow({
  1. required String abi,
  2. required BackendKind backend,
  3. AndroidGpuFamily? androidGpu,
  4. NpuStack? npuVendor,
})

Implementation

LiteRtLmConstrainedDecodingRow liteRtLmConstrainedDecodingRow({
  required String abi,
  required BackendKind backend,
  AndroidGpuFamily? androidGpu,
  NpuStack? npuVendor,
}) => (
  abi: abi,
  backend: backend,
  androidGpu: backend == BackendKind.gpu && abi == 'android_arm64'
      ? androidGpu
      : null,
  npuVendor: backend == BackendKind.npu ? npuVendor : null,
);