Open mathieupoumeyrolsonos opened 1 year ago
Possible next step:
long term, nnef extension in this spirit of :
graph body_rec(xs) -> ys {
i = 0
ys = zeroes[shape(x)]
c = zeroes[...]
loop {
break if i == shape(x)
x = xs[i];
ys = assign_slice(ys, i, F(x, c));
c = C(x, c)
i = i + 1;
}
ys
}
Step 0: Preliminaries
Step 1: Replace Scan by Loop
State management
Processing input
Processing output
Unrolling loops ?
Current choice:
Step 2: flatten subgraphs