-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f7c789
commit 75c0b3d
Showing
14 changed files
with
454 additions
and
60 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
``brainstate.functional`` module | ||
================================ | ||
|
||
.. currentmodule:: brainstate.functional | ||
.. automodule:: brainstate.functional | ||
|
||
Activation Functions | ||
-------------------- | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
:nosignatures: | ||
:template: classtemplate.rst | ||
|
||
tanh | ||
relu | ||
squareplus | ||
softplus | ||
soft_sign | ||
sigmoid | ||
silu | ||
swish | ||
log_sigmoid | ||
elu | ||
leaky_relu | ||
hard_tanh | ||
celu | ||
selu | ||
gelu | ||
glu | ||
logsumexp | ||
log_softmax | ||
softmax | ||
standardize | ||
one_hot | ||
relu6 | ||
hard_sigmoid | ||
hard_silu | ||
hard_swish | ||
hard_shrink | ||
rrelu | ||
mish | ||
soft_shrink | ||
prelu | ||
tanh_shrink | ||
softmin | ||
|
||
|
||
Normalization Functions | ||
----------------------- | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
:nosignatures: | ||
:template: classtemplate.rst | ||
|
||
weight_standardization | ||
|
||
|
||
Spiking Operations | ||
------------------ | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
:nosignatures: | ||
:template: classtemplate.rst | ||
|
||
spike_bitwise_or | ||
spike_bitwise_and | ||
spike_bitwise_iand | ||
spike_bitwise_not | ||
spike_bitwise_xor | ||
spike_bitwise_ixor | ||
spike_bitwise | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,215 @@ | ||
``brainstate.nn`` module | ||
======================== | ||
|
||
.. currentmodule:: brainstate.nn | ||
.. automodule:: brainstate.nn | ||
|
||
Base Classes | ||
------------ | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
:nosignatures: | ||
:template: classtemplate.rst | ||
|
||
ExplicitInOutSize | ||
ElementWiseBlock | ||
Sequential | ||
DnnLayer | ||
|
||
|
||
Synaptic Projections | ||
-------------------- | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
:nosignatures: | ||
:template: classtemplate.rst | ||
|
||
HalfProjAlignPostMg | ||
FullProjAlignPostMg | ||
HalfProjAlignPost | ||
FullProjAlignPost | ||
FullProjAlignPreSDMg | ||
FullProjAlignPreDSMg | ||
FullProjAlignPreSD | ||
FullProjAlignPreDS | ||
HalfProjDelta | ||
FullProjDelta | ||
VanillaProj | ||
|
||
|
||
Connection Layers | ||
----------------- | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
:nosignatures: | ||
:template: classtemplate.rst | ||
|
||
Linear | ||
ScaledWSLinear | ||
SignedWLinear | ||
CSRLinear | ||
Conv1d | ||
Conv2d | ||
Conv3d | ||
ScaledWSConv1d | ||
ScaledWSConv2d | ||
ScaledWSConv3d | ||
|
||
|
||
Neuronal/Synaptic Dynamics | ||
-------------------------- | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
:nosignatures: | ||
:template: classtemplate.rst | ||
|
||
Neuron | ||
IF | ||
LIF | ||
ALIF | ||
Synapse | ||
Expon | ||
STP | ||
STD | ||
|
||
|
||
Rate RNNs | ||
--------- | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
:nosignatures: | ||
:template: classtemplate.rst | ||
|
||
RNNCell | ||
ValinaRNNCell | ||
GRUCell | ||
MGUCell | ||
LSTMCell | ||
URLSTMCell | ||
|
||
|
||
Readout Layers | ||
-------------- | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
:nosignatures: | ||
:template: classtemplate.rst | ||
|
||
LeakyRateReadout | ||
LeakySpikeReadout | ||
|
||
|
||
Synaptic Outputs | ||
---------------- | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
:nosignatures: | ||
:template: classtemplate.rst | ||
|
||
SynOut | ||
COBA | ||
CUBA | ||
MgBlock | ||
|
||
|
||
Element-wise Layers | ||
------------------- | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
:nosignatures: | ||
:template: classtemplate.rst | ||
|
||
Threshold | ||
ReLU | ||
RReLU | ||
Hardtanh | ||
ReLU6 | ||
Sigmoid | ||
Hardsigmoid | ||
Tanh | ||
SiLU | ||
Mish | ||
Hardswish | ||
ELU | ||
CELU | ||
SELU | ||
GLU | ||
GELU | ||
Hardshrink | ||
LeakyReLU | ||
LogSigmoid | ||
Softplus | ||
Softshrink | ||
PReLU | ||
Softsign | ||
Tanhshrink | ||
Softmin | ||
Softmax | ||
Softmax2d | ||
LogSoftmax | ||
Dropout | ||
Dropout1d | ||
Dropout2d | ||
Dropout3d | ||
AlphaDropout | ||
FeatureAlphaDropout | ||
Identity | ||
SpikeBitwise | ||
|
||
|
||
Normalization Layers | ||
-------------------- | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
:nosignatures: | ||
:template: classtemplate.rst | ||
|
||
BatchNorm1d | ||
BatchNorm2d | ||
BatchNorm3d | ||
|
||
|
||
Pooling Layers | ||
-------------- | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
:nosignatures: | ||
:template: classtemplate.rst | ||
|
||
Flatten | ||
Unflatten | ||
AvgPool1d | ||
AvgPool2d | ||
AvgPool3d | ||
MaxPool1d | ||
MaxPool2d | ||
MaxPool3d | ||
AdaptiveAvgPool1d | ||
AdaptiveAvgPool2d | ||
AdaptiveAvgPool3d | ||
AdaptiveMaxPool1d | ||
AdaptiveMaxPool2d | ||
AdaptiveMaxPool3d | ||
|
||
|
||
Other Layers | ||
------------ | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
:nosignatures: | ||
:template: classtemplate.rst | ||
|
||
DropoutFixed | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
``brainstate.init`` module | ||
========================== | ||
|
||
.. currentmodule:: brainstate.init | ||
.. automodule:: brainstate.init | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
|
||
param | ||
state | ||
noise | ||
to_size | ||
Initializer | ||
ZeroInit | ||
Constant | ||
Identity | ||
Normal | ||
TruncatedNormal | ||
Uniform | ||
VarianceScaling | ||
KaimingUniform | ||
KaimingNormal | ||
XavierUniform | ||
XavierNormal | ||
LecunUniform | ||
LecunNormal | ||
Orthogonal | ||
DeltaOrthogonal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.