Skip to content

Conversation

@jipolanco
Copy link
Owner

No description provided.

@jipolanco
Copy link
Owner Author

Thinking about it, I'm not sure singleton dimensions are the best solution for broadcasting along dimensions that should behave like "constants".

The problem is that a (locally) singleton dimension doesn't always imply a "constant" dimension. For instance, if a given dimension has global size N and it is distributed along N processes, then the local size is 1, but this is not a "constant" dimension.

A better alternative would be to provide a Constant flag for dimensions that should behave like it, analogous to e.g. Flat in Oceananigans.

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