From 35437b7c0d1f30e23cf35e06bb156f4bae615322 Mon Sep 17 00:00:00 2001 From: neworderofjamie Date: Fri, 12 Apr 2024 20:21:37 +0100 Subject: [PATCH] fixed bug --- ml_genn/ml_genn/compilers/deep_r.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ml_genn/ml_genn/compilers/deep_r.py b/ml_genn/ml_genn/compilers/deep_r.py index 0a9cf861..27b5df7a 100644 --- a/ml_genn/ml_genn/compilers/deep_r.py +++ b/ml_genn/ml_genn/compilers/deep_r.py @@ -89,7 +89,7 @@ const unsigned int i = gennrand() % num_pre; // If there's space on this row, add an activation and decrement dormant - if(row_length[i] < row_stride) { + if((row_length[i] + NumActivations[i]) < row_stride) { NumActivations[i]++; numRemainingDormant--; }