Simple proposal to allow seed argument to be a key generated from jax.random.PRNGKey in the initialization of class EngineBuilder. Unfortunately type testing for the key is not really strict with jax.Array. However using jnp.issubdtype(seed.dtype, jnp.uint32) makes it more complicated. Stricter type testing seems only possible with jax.random.key currently, see #16716 and #16781 for current development on this.
Simple proposal to allow
seed
argument to be a key generated fromjax.random.PRNGKey
in the initialization of classEngineBuilder
. Unfortunately type testing for the key is not really strict withjax.Array
. However usingjnp.issubdtype(seed.dtype, jnp.uint32)
makes it more complicated. Stricter type testing seems only possible withjax.random.key
currently, see #16716 and #16781 for current development on this.