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--; }