brainpy.running.process_pool

brainpy.running.process_pool(func, all_net_params, nb_process)[source]

Run multiple models in multi-processes.

Parameters
  • func (callable) – The function to run model.

  • all_net_params (a_list, tuple) – The parameters of the function arguments. The parameters for each process can be a tuple, or a dictionary.

  • nb_process (int) – The number of the processes.

Returns

results – Process results.

Return type

list