Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 26, 2024
Merged

Conversation

chaoming0625
Copy link
Collaborator

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
32 checks passed
@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