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
{{ message }}
This repository was archived by the owner on Sep 11, 2023. It is now read-only.
https://pytorch.org/docs/stable/named_tensor.html
See this twitter conversation.
In particular, try extending xarray with a little "accessor" extension like
dataarray.torch.to_tensor()
(as suggested by Joe Hamman on Twitter!)And see Joe's pull request, which implements xarray-to-pytorch-named-tensors.
But note that
torch.stack
doesn't yet support named tensors (here's a feature request)The text was updated successfully, but these errors were encountered: