brainstate 0.1.0.post20250322__py2.py3-none-any.whl → 0.1.0.post20250325__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/_collective_ops.py +5 -5
- {brainstate-0.1.0.post20250322.dist-info → brainstate-0.1.0.post20250325.dist-info}/METADATA +1 -1
- {brainstate-0.1.0.post20250322.dist-info → brainstate-0.1.0.post20250325.dist-info}/RECORD +6 -6
- {brainstate-0.1.0.post20250322.dist-info → brainstate-0.1.0.post20250325.dist-info}/LICENSE +0 -0
- {brainstate-0.1.0.post20250322.dist-info → brainstate-0.1.0.post20250325.dist-info}/WHEEL +0 -0
- {brainstate-0.1.0.post20250322.dist-info → brainstate-0.1.0.post20250325.dist-info}/top_level.txt +0 -0
brainstate/nn/_collective_ops.py
CHANGED
@@ -16,9 +16,9 @@
|
|
16
16
|
from __future__ import annotations
|
17
17
|
|
18
18
|
from collections import namedtuple
|
19
|
+
from typing import Callable, TypeVar, Tuple, Any, Dict
|
19
20
|
|
20
21
|
import jax
|
21
|
-
from typing import Callable, TypeVar, Tuple, Any, Dict
|
22
22
|
|
23
23
|
from brainstate._state import catch_new_states
|
24
24
|
from brainstate._utils import set_module_as
|
@@ -289,12 +289,12 @@ def init_all_states(
|
|
289
289
|
@set_module_as('brainstate.nn')
|
290
290
|
def vmap_init_all_states(
|
291
291
|
target: T,
|
292
|
-
init_args: Tuple[Any, ...] | Any
|
293
|
-
init_kwargs: Dict[str, Any] | None = None,
|
292
|
+
*init_args: Tuple[Any, ...] | Any,
|
294
293
|
axis_size: int = None,
|
295
294
|
node_to_exclude: Filter = None,
|
296
295
|
state_to_exclude: Filter = None,
|
297
296
|
state_tag: str | None = None,
|
297
|
+
**init_kwargs: Dict[str, Any] | None
|
298
298
|
) -> T:
|
299
299
|
"""
|
300
300
|
Initialize all vmap states for the given target module.
|
@@ -342,8 +342,8 @@ def vmap_init_all_states(
|
|
342
342
|
def init_fn():
|
343
343
|
init_all_states(
|
344
344
|
target,
|
345
|
-
init_args
|
346
|
-
init_kwargs
|
345
|
+
*init_args,
|
346
|
+
**init_kwargs,
|
347
347
|
node_to_exclude=node_to_exclude,
|
348
348
|
)
|
349
349
|
return
|
{brainstate-0.1.0.post20250322.dist-info → brainstate-0.1.0.post20250325.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.post20250325
|
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
|
@@ -54,7 +54,7 @@ brainstate/init/_random_inits_test.py,sha256=lBL2RQdBSZ88Zqz4IMdbHJMvDi7ooZq6caC
|
|
54
54
|
brainstate/init/_regular_inits.py,sha256=DmVMajugfyYFNUMzgFdDKMvbBu9hMWxkfDd-50uhoLg,3187
|
55
55
|
brainstate/init/_regular_inits_test.py,sha256=tJl4aOkclllJIfKzJTbc0cfYCw2SoBsx8_G123RnqbU,1842
|
56
56
|
brainstate/nn/__init__.py,sha256=ar1hDUYbSO6oadMpbuS9FWZvZB_iyFzM8CwMK-RNDzM,1823
|
57
|
-
brainstate/nn/_collective_ops.py,sha256=
|
57
|
+
brainstate/nn/_collective_ops.py,sha256=v5deEfjCWylCk4bV0b3mLHjFUJ0L9YiGhJ7D_RuZwBE,17428
|
58
58
|
brainstate/nn/_collective_ops_test.py,sha256=nloqrlf6M7H-mgvHmIARrKzMotp8khxEuYSMPvXM5J0,1375
|
59
59
|
brainstate/nn/_common.py,sha256=XQw0i0sH3Y_qUwHSMC7G9VQnDj-RuuTh1Ul-xRIPxxc,7136
|
60
60
|
brainstate/nn/_exp_euler.py,sha256=s-Z_cT_oYvCvE-OaXuUidIxQs3KOy1pzkx1lwtfPo00,3529
|
@@ -121,8 +121,8 @@ brainstate/util/_pretty_table.py,sha256=NM_6VAW6oL9jojsK0-RkQGHnDzLy_fn_hgzl5R8o
|
|
121
121
|
brainstate/util/_scaling.py,sha256=pc_eM_SZVwkY65I4tJh1ODiHNCoEhsfFXl2zBK0PLAg,7562
|
122
122
|
brainstate/util/_struct.py,sha256=F5GfFURITAIYTwf17_xypkZU1wvoL4dUCviPnr_eCtw,17515
|
123
123
|
brainstate/util/filter.py,sha256=Zw0H42NwAi2P7dBr3ISv2VpkB5jqoWnV4Kpd61gq66o,14126
|
124
|
-
brainstate-0.1.0.
|
125
|
-
brainstate-0.1.0.
|
126
|
-
brainstate-0.1.0.
|
127
|
-
brainstate-0.1.0.
|
128
|
-
brainstate-0.1.0.
|
124
|
+
brainstate-0.1.0.post20250325.dist-info/LICENSE,sha256=VZe9u1jgUL2eCY6ZPOYgdb8KCblCHt8ECdbtJid6e1s,11550
|
125
|
+
brainstate-0.1.0.post20250325.dist-info/METADATA,sha256=Ouz5zN2P7bIG1OYkQRFOaSxWeL4OOjHRJ2cQKaqZc6E,3689
|
126
|
+
brainstate-0.1.0.post20250325.dist-info/WHEEL,sha256=bb2Ot9scclHKMOLDEHY6B2sicWOgugjFKaJsT7vwMQo,110
|
127
|
+
brainstate-0.1.0.post20250325.dist-info/top_level.txt,sha256=eQbGgKn0ptx7FDWuua0V0wr4K1VHi2iOUCYo3fUQBRA,11
|
128
|
+
brainstate-0.1.0.post20250325.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{brainstate-0.1.0.post20250322.dist-info → brainstate-0.1.0.post20250325.dist-info}/top_level.txt
RENAMED
File without changes
|