@@ -40,6 +40,8 @@ def _input_label_repr(name: str, label: Optional[str] = None):
4040
4141
4242class Dynamics (brainstate .nn .Dynamics ):
43+ __module__ = 'brainpy.state'
44+
4345 def __init__ (self , in_size : Size , name : Optional [str ] = None ):
4446 # initialize
4547 super ().__init__ (name = name , in_size = in_size )
@@ -401,8 +403,8 @@ def align_pre(self, dyn: Union[ParamDescriber[T], T]) -> T:
401403 Examples
402404 --------
403405 >>> import brainstate
404- >>> n1 = brainstate.nn .LIF(10)
405- >>> n1.align_pre(brainstate.nn .Expon.desc(n1.varshape)) # n2 will run after n1
406+ >>> n1 = brainpy.state .LIF(10)
407+ >>> n1.align_pre(brainpy.state .Expon.desc(n1.varshape)) # n2 will run after n1
406408 """
407409 if isinstance (dyn , Dynamics ):
408410 self .add_after_update (id (dyn ), dyn )
@@ -425,7 +427,7 @@ class Neuron(Dynamics):
425427 Base class for all spiking neuron models.
426428
427429 This abstract class serves as the foundation for implementing various spiking neuron
428- models in the BrainPy framework. It extends the ``brainstate.nn .Dynamics`` class and
430+ models in the BrainPy framework. It extends the ``brainpy.state .Dynamics`` class and
429431 provides common functionality for spike generation, membrane potential dynamics, and
430432 surrogate gradient handling required for training spiking neural networks.
431433
@@ -595,7 +597,7 @@ class Neuron(Dynamics):
595597 .. [3] Gerstner, W., Kistler, W. M., Naud, R., & Paninski, L. (2014). Neuronal dynamics:
596598 From single neurons to networks and models of cognition. Cambridge University Press.
597599 """
598- __module__ = 'brainpy'
600+ __module__ = 'brainpy.state '
599601
600602 def __init__ (
601603 self ,
@@ -849,4 +851,4 @@ class Synapse(Dynamics):
849851 .. [3] Gerstner, W., Kistler, W. M., Naud, R., & Paninski, L. (2014). Neuronal dynamics:
850852 From single neurons to networks and models of cognition. Cambridge University Press.
851853 """
852- __module__ = 'brainpy'
854+ __module__ = 'brainpy.state '
0 commit comments