I was trying to do GPU computation on Nengo and read this article on simulating Nengo models using NengoDL: https://www.nengo.ai/nengo-dl/examples/from-nengo.html#Batch-processing
I had a doubt regarding Batch Processing - if my model takes different input for different simulations, how do I apply batch processing on it?
Here is a snippet of my code:
def simulate (n): x_in = nengo.Node(x_input[n]) x = nengo.Ensemble(...) ....... with nengo_dl.Simulator(model) as sim: sim.run(0.5)
In this code, x_input is a collection of vectors, and I am calling the simulate function with n as a parameter, in order to pass different value of x_input[n] at each call. How can I do this in batches instead?