brainstate 0.1.2__py2.py3-none-any.whl → 0.1.4__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- brainstate/__init__.py +1 -1
- brainstate/_compatible_import.py +0 -15
- brainstate/compile/_jit.py +14 -5
- brainstate/compile/_make_jaxpr.py +78 -22
- brainstate/compile/_make_jaxpr_test.py +13 -2
- brainstate/graph/_graph_node.py +1 -1
- brainstate/graph/_graph_operation.py +4 -4
- brainstate/mixin.py +30 -14
- brainstate/nn/__init__.py +84 -17
- brainstate/nn/{_interaction/_conv.py → _conv.py} +1 -1
- brainstate/nn/{_dynamics/_state_delay.py → _delay.py} +19 -3
- brainstate/nn/{_elementwise/_dropout.py → _dropout.py} +6 -5
- brainstate/nn/{_dynamics/_dynamics_base.py → _dynamics.py} +137 -21
- brainstate/nn/{_elementwise/_elementwise.py → _elementwise.py} +1 -1
- brainstate/nn/{_interaction/_embedding.py → _embedding.py} +1 -1
- brainstate/nn/{_event/_fixedprob_mv.py → _fixedprob.py} +96 -25
- brainstate/nn/{_dyn_impl/_inputs.py → _inputs.py} +4 -5
- brainstate/nn/{_interaction/_linear.py → _linear.py} +2 -5
- brainstate/nn/{_event/_linear_mv.py → _linear_mv.py} +2 -2
- brainstate/nn/{_event/__init__.py → _ltp.py} +7 -5
- brainstate/nn/_module.py +5 -5
- brainstate/nn/{_dyn_impl/_dynamics_neuron.py → _neuron.py} +2 -2
- brainstate/nn/{_interaction/_normalizations.py → _normalizations.py} +1 -1
- brainstate/nn/{_interaction/_poolings.py → _poolings.py} +1 -1
- brainstate/nn/{_interaction/_poolings_test.py → _poolings_test.py} +1 -1
- brainstate/nn/_projection.py +486 -0
- brainstate/nn/{_dyn_impl/_rate_rnns.py → _rate_rnns.py} +2 -2
- brainstate/nn/{_dyn_impl/_readout.py → _readout.py} +3 -3
- brainstate/nn/_stp.py +236 -0
- brainstate/nn/{_dyn_impl/_dynamics_synapse.py → _synapse.py} +19 -212
- brainstate/nn/_synaptic_projection.py +423 -0
- brainstate/nn/{_dynamics/_synouts.py → _synouts.py} +4 -1
- brainstate/surrogate.py +1 -1
- brainstate/typing.py +1 -1
- brainstate/util/__init__.py +14 -14
- brainstate/util/{_pretty_pytree.py → pretty_pytree.py} +2 -2
- {brainstate-0.1.2.dist-info → brainstate-0.1.4.dist-info}/METADATA +1 -1
- {brainstate-0.1.2.dist-info → brainstate-0.1.4.dist-info}/RECORD +61 -63
- brainstate/nn/_dyn_impl/__init__.py +0 -42
- brainstate/nn/_dynamics/__init__.py +0 -37
- brainstate/nn/_dynamics/_projection_base.py +0 -362
- brainstate/nn/_elementwise/__init__.py +0 -22
- brainstate/nn/_interaction/__init__.py +0 -41
- /brainstate/nn/{_interaction/_conv_test.py → _conv_test.py} +0 -0
- /brainstate/nn/{_elementwise/_dropout_test.py → _dropout_test.py} +0 -0
- /brainstate/nn/{_dynamics/_dynamics_base_test.py → _dynamics_test.py} +0 -0
- /brainstate/nn/{_elementwise/_elementwise_test.py → _elementwise_test.py} +0 -0
- /brainstate/nn/{_event/_fixedprob_mv_test.py → _fixedprob_test.py} +0 -0
- /brainstate/nn/{_event/_linear_mv_test.py → _linear_mv_test.py} +0 -0
- /brainstate/nn/{_interaction/_linear_test.py → _linear_test.py} +0 -0
- /brainstate/nn/{_dyn_impl/_dynamics_neuron_test.py → _neuron_test.py} +0 -0
- /brainstate/nn/{_interaction/_normalizations_test.py → _normalizations_test.py} +0 -0
- /brainstate/nn/{_dyn_impl/_rate_rnns_test.py → _rate_rnns_test.py} +0 -0
- /brainstate/nn/{_dyn_impl/_readout_test.py → _readout_test.py} +0 -0
- /brainstate/nn/{_dyn_impl/_dynamics_synapse_test.py → _synapse_test.py} +0 -0
- /brainstate/nn/{_dynamics/_synouts_test.py → _synouts_test.py} +0 -0
- /brainstate/util/{_caller.py → caller.py} +0 -0
- /brainstate/util/{_error.py → error.py} +0 -0
- /brainstate/util/{_others.py → others.py} +0 -0
- /brainstate/util/{_pretty_repr.py → pretty_repr.py} +0 -0
- /brainstate/util/{_pretty_table.py → pretty_table.py} +0 -0
- /brainstate/util/{_scaling.py → scaling.py} +0 -0
- /brainstate/util/{_struct.py → struct.py} +0 -0
- {brainstate-0.1.2.dist-info → brainstate-0.1.4.dist-info}/LICENSE +0 -0
- {brainstate-0.1.2.dist-info → brainstate-0.1.4.dist-info}/WHEEL +0 -0
- {brainstate-0.1.2.dist-info → brainstate-0.1.4.dist-info}/top_level.txt +0 -0
@@ -1,41 +0,0 @@
|
|
1
|
-
# Copyright 2024 BDP Ecosystem Limited. All Rights Reserved.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
# ==============================================================================
|
15
|
-
|
16
|
-
from ._conv import *
|
17
|
-
from ._conv import __all__ as conv_all
|
18
|
-
from ._embedding import *
|
19
|
-
from ._embedding import __all__ as embed_all
|
20
|
-
from ._linear import *
|
21
|
-
from ._linear import __all__ as linear_all
|
22
|
-
from ._normalizations import *
|
23
|
-
from ._normalizations import __all__ as normalizations_all
|
24
|
-
from ._poolings import *
|
25
|
-
from ._poolings import __all__ as poolings_all
|
26
|
-
|
27
|
-
__all__ = (
|
28
|
-
conv_all +
|
29
|
-
linear_all +
|
30
|
-
normalizations_all +
|
31
|
-
poolings_all +
|
32
|
-
embed_all
|
33
|
-
)
|
34
|
-
|
35
|
-
del (
|
36
|
-
conv_all,
|
37
|
-
linear_all,
|
38
|
-
normalizations_all,
|
39
|
-
poolings_all,
|
40
|
-
embed_all
|
41
|
-
)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|