You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find jaxtyping a blast to use, as is tensordict(https://github.com/pytorch/tensordict). If I could have it both ways, that would be even more amazing!
Thanks for the great work!
The text was updated successfully, but these errors were encountered:
Hmm, so it's not clear to me how we'd go about annotating a TensorDict, in the same way that it's not obvious to me how to annotate the shapes and dtypes of the values of a regular dict.
But... have you tried the @tensorclass decorator that tensordict also provides? As that explicitly annotates the contained elements then I think that should be exactly what you need?
I find
jaxtyping
a blast to use, as istensordict
(https://github.com/pytorch/tensordict). If I could have it both ways, that would be even more amazing!Thanks for the great work!
The text was updated successfully, but these errors were encountered: