This release adds official support for custom dataclasses in the phiml.dataclasses
module.
Highlights
- Dataclass decorators
@sliceable
,@data_eq
- Replacing some fields of a dataclass instance keeps all unaffected caches from
@cached_property
- Dataclasses no longer need to handle
None
values in comparisons when used in JIT or other tracing. - Shorthand function
*max
,*min
,*prod
,*pack
for specific dim types - New syntax for item name renaming while slicing, e.g.
tensor['y,x->a,b]
selects the slices x and y and renames them. - Add
squeeze
to remove singleton dims - Improve formatting of sparse matrices
clip()
now acceptsShape
for the upper limit- Dim packing functions can now also be used for unpacking when passing one input and multiple output dims.