Can GeNN realize dual-exp synapse with "create_weight_update_model" method? #709
Answered
by
tnowotny
OOOOOmoi
asked this question in
GeNN questions
-
Beta Was this translation helpful? Give feedback.
Answered by
tnowotny
Sep 1, 2025
Replies: 2 comments 5 replies
-
|
OK, I test the demo on another device and get the result below: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment





This looks like a typical floating-point comparison issue. Due to potential rounding issues, it is unsafe to compare floating point variables with
==. The safe way is to compareabs(t-st_pre) < 0.1*DTor something similar. Note, the rounding errors can go both ways, hence the use ofabs.Another thought, it would be more elegant (and maybe slightly faster) if the increment of x was applied within the
pre_spike_syn_codesnippet (using GeNN 5.x naming here):If done this way, there is no need for comparing
tandst_pre.