liteRtLmConstrainedDecodingRow function
LiteRtLmConstrainedDecodingRow
liteRtLmConstrainedDecodingRow({
- required String abi,
- required BackendKind backend,
- AndroidGpuFamily? androidGpu,
- 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,
);