Skip to content
New issue

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

ToT Inner Rank #288

Open
ryanmrichard opened this issue Jun 24, 2021 · 0 comments
Open

ToT Inner Rank #288

ryanmrichard opened this issue Jun 24, 2021 · 0 comments

Comments

@ryanmrichard
Copy link
Contributor

I sometimes need the rank of the inner tensors in a tensor of tensors (ToT). range().rank() only knows about the outer rank. AFAIK at the moment the only way to get the inner rank is to grab a tile and then call .range().rank() on a non-empty element of the tile. I'm not sure if it's possible for there to be zero local tiles, if so, then you'll have to grab a remote tile and ask for its rank.

I see two better solutions:

  • The easiest: have DistArray keep track of inner tile ranks when they're being inserted
  • The more correct (?), but harder: Have the Range object know about the range hierarchy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant