Jaxtyping Versions Save

Type annotations and runtime checking for shape and dtype of JAX/NumPy/PyTorch/etc. arrays. https://docs.kidger.site/jaxtyping/

v0.2.19

1 year ago
  • Proper documentation! Not just markdown files on GitHub any more. Check out https://docs.kidger.site/jaxtyping.
  • Added jaxtyping.{PRNGKeyArray,Scalar,ScalarLike}
  • Can now nest, e.g.
    Image = Float[Array, "channels height width"]
    BatchImage = Float[Image, "batch"]
    
  • Now packaging in the modern way with pyproject.toml.
  • Dtypes can now match regexes (e.g. used in keys to match ^key<\w+>$),

Full Changelog: https://github.com/google/jaxtyping/compare/v0.2.15...v0.2.19

v0.2.18

1 year ago

(Yanked; broke the pytest hook. Prefer v0.2.19 instead.)

Full Changelog: https://github.com/google/jaxtyping/compare/v0.2.15...v0.2.18

v0.2.17

1 year ago

(Yanked; had incompatibility with non-JAX installations. Prefer v0.2.19 instead.)

Full Changelog: https://github.com/google/jaxtyping/compare/v0.2.15...v0.2.17

v0.2.16

1 year ago

(Yanked; had static typing issues. Prefer v0.2.19 instead.)

Full Changelog: https://github.com/google/jaxtyping/compare/v0.2.15...v0.2.16

v0.2.15

1 year ago
  • Added support for functions in symbolic dimensions, e.g. "min(foo,bar)", which were previously disallowed due to the presence of a comma. (#51)
  • Added support for adding ignored names to dimensions, e.g. "cols=4". (#76)
  • Added support for Python 3.10 A | B union types (#73)
  • Experimental (largely untested) compatibility with torch.compile. (#71)

Full Changelog: https://github.com/google/jaxtyping/compare/v0.2.14...v0.2.15

v0.2.14

1 year ago

Highlights

Features

  • Tweaked install_import_hook(..., typechecker=...) argument to also accept a string. In particular this means it can be used with beartype's new full checking; this can be enabled by passing typechecker="beartype.beartype(conf=beartype.BeartypeConf(strategy=beartype.BeartypeStrategy.On))".
  • It is now the case that e.g. issubclass(Float[array_type, ...], array_type). (This is what brings compatibility with Plum v2.)
  • NumPy and PyTorch compatibility is now tested.

Bugfixes

  • Statements like Bool[int, "..."] should now raise an error.
  • Applying @jaxtyping fo functions with fn in their __dict__ should now work.
  • Subclassing dataclasses whilst using install_import_hook(..., typechecker="beartype.beartype") should no longer raise a spurious error.
  • Changing the value of install_import_hook(..., typechecker=...) will no longer wrongly hit the same __pycache__. (Before this the change in value was ignored.)
  • Can now serialise jaxtyping types using cloudpickle.

New Contributors

Full Changelog: https://github.com/google/jaxtyping/compare/v0.2.13...v0.2.14

v0.2.13

1 year ago

Added support for jax.typing.ArrayLike.

Full Changelog: https://github.com/google/jaxtyping/compare/v0.2.12...v0.2.13

v0.2.12

1 year ago

Autogenerated release notes as follows:

What's Changed

Full Changelog: https://github.com/google/jaxtyping/compare/v0.2.11...v0.2.12

v0.2.11

1 year ago

Autogenerated release notes as follows:

What's Changed

Full Changelog: https://github.com/google/jaxtyping/compare/v0.2.10...v0.2.11

v0.2.10

1 year ago

Autogenerated release notes as follows:

What's Changed

Full Changelog: https://github.com/google/jaxtyping/compare/v0.2.9...v0.2.10