예제 #1
0
def test_synapse_by_ampa1_vec_with_uniform_delay():
    lif = StochasticLIF(2)
    ampa = AMPA1_vec(pre=lif, post=lif, conn=bp.connect.All2All(), delay=10.)

    driver = NumbaCUDANodeDriver(pop=ampa)
    driver.get_steps_func(show_code=True)
    pprint(driver.formatted_funcs)
예제 #2
0
def test_neuron_by_lif():
    lif = StochasticLIF(1, has_noise=False)

    driver = NumbaCUDANodeDriver(pop=lif)
    driver.get_steps_func(show_code=True)
    pprint(driver.formatted_funcs)