Skip to content
Discussion options

You must be logged in to vote

Assuming you want to provide weights yourself, the easiest solution is to create 3 numpy arrays: presynaptic neuron id (pre_ind), postsynaptic neuron id (post_ind) and weight (g):

sg = model.add_synapse_population(
    "Synapses", "SPARSE",
    pre_pop, post_pop,
    init_weight_update("StaticPulse", {}, {"g": g}),
    init_postsynaptic("DeltaCurr"))
sg.set_sparse_connections(pre_ind, post_ind)

Obviously, using whatever weight update and postsynaptic models you want!

We have recently fixed some issues in this area so please make sure you are using either the GeNN 5.3.0 release candidate or the lastest master version.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@neworderofjamie
Comment options

@andreARibe
Comment options

Answer selected by andreARibe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants