Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions decent_array/interoperability/_jax/jax_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,9 @@ def choice(self, x: Array, size: int, replace: bool = True) -> Array:

def _next_key(self) -> jax.Array:
"""Split the stored key, advance state, return a sub-key for one draw."""
self._key, sub = jax.random.split(self._key)
return cast("jax.Array", sub)
self._key, raw_sub = jax.random.split(self._key)
sub: jax.Array = raw_sub
return sub

# Dtypes

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "decent-array"
version = "0.2.7"
version = "0.2.8"
authors = [{name = "Simon Granström"}, {name = "Nicola Bastianello"}]
maintainers = [{name = "Team Decent"}]
description = "A library of array operations and linear algebra primitives for interoperability across ML frameworks."
Expand Down
Loading