brainstate 0.1.0.post20241220__py2.py3-none-any.whl → 0.1.0.post20241221__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/nn/_dynamics/_state_delay.py +5 -2
- {brainstate-0.1.0.post20241220.dist-info → brainstate-0.1.0.post20241221.dist-info}/METADATA +1 -1
- {brainstate-0.1.0.post20241220.dist-info → brainstate-0.1.0.post20241221.dist-info}/RECORD +6 -6
- {brainstate-0.1.0.post20241220.dist-info → brainstate-0.1.0.post20241221.dist-info}/LICENSE +0 -0
- {brainstate-0.1.0.post20241220.dist-info → brainstate-0.1.0.post20241221.dist-info}/WHEEL +0 -0
- {brainstate-0.1.0.post20241220.dist-info → brainstate-0.1.0.post20241221.dist-info}/top_level.txt +0 -0
@@ -51,11 +51,14 @@ def _get_delay(delay_time, delay_step):
|
|
51
51
|
assert isinstance(delay_step, int), '"delay_step" should be an integer.'
|
52
52
|
if delay_step == 0:
|
53
53
|
return 0., 0
|
54
|
-
|
54
|
+
with jax.ensure_compile_time_eval():
|
55
|
+
delay_time = delay_step * environ.get_dt()
|
55
56
|
else:
|
56
57
|
assert delay_step is None, '"delay_step" should be None if "delay_time" is given.'
|
57
58
|
# assert isinstance(delay_time, (int, float))
|
58
|
-
|
59
|
+
with jax.ensure_compile_time_eval():
|
60
|
+
delay_step = delay_time / environ.get_dt()
|
61
|
+
delay_step = math.ceil(float(delay_step))
|
59
62
|
return delay_time, delay_step
|
60
63
|
|
61
64
|
|
{brainstate-0.1.0.post20241220.dist-info → brainstate-0.1.0.post20241221.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: brainstate
|
3
|
-
Version: 0.1.0.
|
3
|
+
Version: 0.1.0.post20241221
|
4
4
|
Summary: A ``State``-based Transformation System for Program Compilation and Augmentation.
|
5
5
|
Home-page: https://github.com/chaobrain/brainstate
|
6
6
|
Author: BrainState Developers
|
@@ -93,7 +93,7 @@ brainstate/nn/_dynamics/__init__.py,sha256=j1HSWu01wf5-KjSaNhBC9utVGDALOhUsFPrLP
|
|
93
93
|
brainstate/nn/_dynamics/_dynamics_base.py,sha256=SOfrET1Z-JkS2GPo2bkQ-v40FLozIxT5A7ObwW_hQYo,21987
|
94
94
|
brainstate/nn/_dynamics/_dynamics_base_test.py,sha256=gXMwENqqSvyZbMpLP0QtYndJ_h39dF5gIeiiSbMAjTk,2721
|
95
95
|
brainstate/nn/_dynamics/_projection_base.py,sha256=jYe3WdBMgz2TJkcxPWEkyK7OA4IR1ChISd2GTfM6U2o,13528
|
96
|
-
brainstate/nn/_dynamics/_state_delay.py,sha256=
|
96
|
+
brainstate/nn/_dynamics/_state_delay.py,sha256=KfsXXoFg8hv9wZgY-p5_-cTGbY88rviJmCfnGiDgboo,16905
|
97
97
|
brainstate/nn/_dynamics/_synouts.py,sha256=9TGAc-nVa50th7KKn4oKLbro-4W4rwxYvp-eu7ksAIE,4491
|
98
98
|
brainstate/nn/_dynamics/_synouts_test.py,sha256=V_jDswRN4VvEXD-2yJO3VA1TALgX0HK6oPBQiUntOWc,2266
|
99
99
|
brainstate/nn/_elementwise/__init__.py,sha256=PK8oq1K_EG2941AiUyLxCWoRdWvMO3yt8ZJbw3Lkhu8,935
|
@@ -137,8 +137,8 @@ brainstate/util/_scaling.py,sha256=pc_eM_SZVwkY65I4tJh1ODiHNCoEhsfFXl2zBK0PLAg,7
|
|
137
137
|
brainstate/util/_struct.py,sha256=0exv0oOiSt1hmx20Y4J2-pCGtCTx13WcAlEYSBkyung,17640
|
138
138
|
brainstate/util/_tracers.py,sha256=0r5T4nhxMzI79NtqroqitsdMT4YfpgV5RdYJLS5uJ0w,2285
|
139
139
|
brainstate/util/_visualization.py,sha256=n4ZVz10z7VBqA0cKO6vyHwEMprWJgPeEqtITzDMai2Y,1519
|
140
|
-
brainstate-0.1.0.
|
141
|
-
brainstate-0.1.0.
|
142
|
-
brainstate-0.1.0.
|
143
|
-
brainstate-0.1.0.
|
144
|
-
brainstate-0.1.0.
|
140
|
+
brainstate-0.1.0.post20241221.dist-info/LICENSE,sha256=VZe9u1jgUL2eCY6ZPOYgdb8KCblCHt8ECdbtJid6e1s,11550
|
141
|
+
brainstate-0.1.0.post20241221.dist-info/METADATA,sha256=amK3qX-uzU9N38oHF7v7CZ-xyyviTzvHivKvBU0Lths,3533
|
142
|
+
brainstate-0.1.0.post20241221.dist-info/WHEEL,sha256=bb2Ot9scclHKMOLDEHY6B2sicWOgugjFKaJsT7vwMQo,110
|
143
|
+
brainstate-0.1.0.post20241221.dist-info/top_level.txt,sha256=eQbGgKn0ptx7FDWuua0V0wr4K1VHi2iOUCYo3fUQBRA,11
|
144
|
+
brainstate-0.1.0.post20241221.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{brainstate-0.1.0.post20241220.dist-info → brainstate-0.1.0.post20241221.dist-info}/top_level.txt
RENAMED
File without changes
|