batching_environment#
- class brainpy.math.batching_environment(dt=None, x64=None, complex_=None, float_=None, int_=None, bool_=None, batch_size=1, membrane_scaling=None)[source]#
Environment with the batching mode.
This is a short-cut context setting for an environment with the batching mode. It is equivalent to:
>>> import brainpy.math as bm >>> with bm.environment(mode=bm.batching_mode): >>> pass