Published May 12, 2023
| Version v0.3.4
Software
Open
ASEM000/PyTreeClass: v0.3.4
Description
What's Changed
- Exposed internal
Partial(used forbcmap) for jaxable partial functions with positional arguments support
>>> import pytreeclass as pytc
>>> def f(a, b, c):
... print(f"a: {a}, b: {b}, c: {c}")
... return a + b + c
>>> # positional arguments using `...` placeholder
>>> f_a = pytc.Partial(f, ..., 2, 3)
>>> f_a(1)
a: 1, b: 2, c: 3
6
- Use
pytc.AtIndexerinstead oftree_indexer - docstring for .at functionality Full Changelog: https://github.com/ASEM000/PyTreeClass/compare/v0.3.3...v0.3.4
Files
ASEM000/PyTreeClass-v0.3.4.zip
Files
(269.9 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:62856595c5aa4965926e09c0a2c7b722
|
269.9 kB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/ASEM000/PyTreeClass/tree/v0.3.4 (URL)