From c31248ef34380bdd33559ef4f71089dfc2a4df05 Mon Sep 17 00:00:00 2001 From: alexmadison Date: Mon, 4 Apr 2022 19:14:35 +0200 Subject: [PATCH] fixed bug in append and demux --- dataflow_neuro/primitives.act | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dataflow_neuro/primitives.act b/dataflow_neuro/primitives.act index 8cbb3da..8f1db88 100644 --- a/dataflow_neuro/primitives.act +++ b/dataflow_neuro/primitives.act @@ -798,7 +798,7 @@ namespace tmpl { { { N >= 0 : "What?" }; { NVAL >= 0 : "What?" }; - { NVAL < 1< in_val(.supply = supply); @@ -873,13 +873,13 @@ defproc slice_data(avMx1of2 in; avMx1of2 out; in.a = demux.in.a; - (i:0..CONDITION_BIT: + (i:0..CONDITION_BIT-1: in.d.d[i].f = demux.in.d.d[i].f; in.d.d[i].t = demux.in.d.d[i].t;) - (i:CONDITION_BIT..N-1: - in.d.d[i].f = demux.in.d.d[i].f; - in.d.d[i].t = demux.in.d.d[i].t;) + (i:CONDITION_BIT+1..N: + in.d.d[i].f = demux.in.d.d[i-1].f; + in.d.d[i].t = demux.in.d.d[i-1].t;) }