def caches

bend-ml-llama@0.2.1.0 · main.bend:1066

import bend-ml-llama@0.2.1.0/main.bend as BendMlLlama
import Base

1066# n empty caches, one per layer, each with room for cap positions
1067def caches(+c: Cfg, n: Nat, +cap: Nat) -> List<&1, KV<cap, 0n>>:
1068  match n:
1069    case 0n:
1070      Nil{}
1071    case 1n+p:
1072      KV.empty(c, cap) <> caches(c, p, cap)

Uses (5)

Used by (0)

No other definition uses this definition.