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

Update the volume(DistArray<Tile,Policy>) function. #457

Merged
merged 4 commits into from
Jun 25, 2024

Conversation

bimalgaudel
Copy link
Member

Update the volume(DistArray<Tile,Policy>) function to support sparse arrays as well as arrays with tensor-of-tensor tiles.

@bimalgaudel bimalgaudel marked this pull request as ready for review June 25, 2024 19:50
@bimalgaudel bimalgaudel requested a review from evaleev June 25, 2024 19:50
vol += in_tile.total_size();
};

for (auto&& tix : array.tiles_range())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for(tidx: tiles_range)
  if (array.is_local(tidx) && ~array.is_zero(tidx)) {

is equivalent to

for(auto&& local_tile_future: array) {

replace please

@bimalgaudel bimalgaudel merged commit e8ab5e2 into master Jun 25, 2024
9 checks passed
@bimalgaudel bimalgaudel deleted the gaudel/refactor/volume_function branch June 25, 2024 23:42
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

Successfully merging this pull request may close these issues.

2 participants