Skip to content

Commit

Permalink
removed old, commented out deep-r activation algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
neworderofjamie committed Sep 5, 2024
1 parent fd5c10c commit cda5c55
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions ml_genn/ml_genn/compilers/deep_r.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,24 +98,6 @@
NumFailedRewirings[0]++;
}
}
// Loop through all rows but last
//size_t numTotalPaddingSynapses = (row_stride * num_pre) - numSynapses;
//for(unsigned int i = 0; i < (num_pre - 1); i++) {
// const unsigned int numRowPaddingSynapses = row_stride - row_length[i];
// if(numRowPaddingSynapses > 0 && numTotalPaddingSynapses > 0) {
// const scalar prob = (scalar)numRowPaddingSynapses / numTotalPaddingSynapses;
//
// const unsigned int numRowActivations = min(numRowPaddingSynapses,
// gennrand_binomial(numRemainingDormant, prob));
// NumActivations[i] = numRowActivations;
//
// numRemainingDormant -= numRowActivations;
// numTotalPaddingSynapses -= numRowPaddingSynapses;
// }
//}
// Put remaining dormant synapses in last row
//NumActivations[num_pre - 1] = numRemainingDormant;
pushNumActivationsToDevice();
""",
Expand Down

0 comments on commit cda5c55

Please sign in to comment.