Computing Modes

Computing Modes#

The math module for whole BrainPy ecosystem. This module provides basic mathematical operations, including:

  • numpy-like array operations

  • linear algebra functions

  • random sampling functions

  • discrete fourier transform functions

  • just-in-time compilation for class objects

  • automatic differentiation for class objects

  • dedicated operators for brain dynamics modeling

  • activation functions

  • device/dtype switching

  • and others

Details in the following.

Mode

Base class for computation Mode

NonBatchingMode

Normal non-batching mode.

BatchingMode

Batching mode.

TrainingMode

Training mode requires data batching.

nonbatching_mode

Normal non-batching mode.

batching_mode

Batching mode.

training_mode

Training mode requires data batching.