Usually, we use step_run with brainpy.math.for_loop. This function does not call brainpy.clear_input, which may cause problems of input accumulation when using old APIs in brainpy.neurons module. Therefore, we should call brainpy.clear_input after each update function.
Usually, we use
step_run
withbrainpy.math.for_loop
. This function does not callbrainpy.clear_input
, which may cause problems of input accumulation when using old APIs inbrainpy.neurons
module. Therefore, we should callbrainpy.clear_input
after eachupdate
function.