BrainPy: a Flexible, Integrative, Efficient, and Extensible Framework Towards General-Purpose Brain Dynamics Programming

Chaoming Wang,Xiaoyu Chen,Tianqiu Zhang,Si Wu
DOI: https://doi.org/10.1101/2022.10.28.514024
IF: 7.7
2022-01-01
eLife
Abstract:The neural mechanisms underlying brain functions are extremely complicated. Brain dynamics modeling is an indispensable tool for elucidating these mechanisms by modeling the dynamics of the neural circuits that execute brain functions. To ease and facilitate brain dynamics modeling, a general-purpose programming framework is needed to enable users to freely define neural models across multiple scales; efficiently simulate, train, and analyze model dynamics; and conveniently extend new modeling approaches. By utilizing the advanced just-in-time (JIT) compilation, we developed BrainPy. BrainPy provides a rich infrastructure tailored for brain dynamics programming, which supports an integrated platform for brain dynamics model building, simulation, training, and analysis. Models in BrainPy can be JIT compiled into binary instructions for multiple devices (including CPU, GPU, and TPU) to achieve a high running performance comparable to native C or CUDA. Moreover, BrainPy features an extensible architecture allowing easy expansion of new infrastructure, utilities, and machine learning approaches. ### Competing Interest Statement The authors have declared no competing interest.
What problem does this paper attempt to address?