Skip to content

1.11.0

Latest
Compare
Choose a tag to compare
@holl- holl- released this 19 Dec 17:16

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 accepts Shape for the upper limit
  • Dim packing functions can now also be used for unpacking when passing one input and multiple output dims.