Tensor-annotations

Latest version: v2.0.3

Safety actively analyzes 682457 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

2.0.2

Fixed

Added support for `.item()` on size-1 JAX arrays.

Fixed indexing of `TensorShape`, and `TensorShape.as_list()`.

2.0.1

Added

Added `TensorNAnyDType` aliases to TensorFlow stubs. (They already exist in JAX stubs.)

2.0.0

Changed

Types are now generic in dtypes as well as shapes. For example, instead of `Array2[Batch, Time]`, one can now write `Array2[uint8, Batch, Time]`.

Note that this is a breaking change. If you want to retain the old behaviour, you can import `ArrayNAnyDType` instead of `ArrayN` - eg:

python
from tensor_annotations.jax import Array2AnyDType as Array2

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.