We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TimeStep
Extend the Type Generics for TimeStep so that one is allowed by the type-checker to create transformations of other TimeStep objects.
Example behaviour,
# Or just step: TimeStep without annotations step: TimeStep[jax.Array] = ... new_step: TimeStep[tuple[int]] = jax.tree_map(jnp.shape, step)
At the moment this is only possible for the Observation field.
Observation
The text was updated successfully, but these errors were encountered:
This would be solved by https://peps.python.org/pep-0696/
Sorry, something went wrong.
For now I will simply extend the TimeStep with Generics for all fields and bound them with their current type and the PyTree type from jaxtyping
jaxtyping
This problem is tracked further in #28
No branches or pull requests
Extend the Type Generics for
TimeStep
so that one is allowed by the type-checker to create transformations of otherTimeStep
objects.Example behaviour,
At the moment this is only possible for the
Observation
field.The text was updated successfully, but these errors were encountered: