Skip to content

[dyn] add clear_input in the step_run function.#601

Merged
chaoming0625 merged 1 commit intomasterfrom
clear-input
Jan 26, 2024
Merged

[dyn] add clear_input in the step_run function.#601
chaoming0625 merged 1 commit intomasterfrom
clear-input

Conversation

@chaoming0625
Copy link
Copy Markdown
Member

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` with `brainpy.math.for_loop`, this function does not call `brainpy.clear_input`, which may cause problems.
@chaoming0625 chaoming0625 merged commit 8c57f66 into master Jan 26, 2024
@chaoming0625 chaoming0625 deleted the clear-input branch January 26, 2024 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants