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

[tensor] add shape consistency feature to support auto spec transform #1418

Merged

Conversation

YuliangLiu0306
Copy link
Contributor

This PR construct a ShapeConsistencyManager class to manage the shape consistency behaviour, it mainly does three things:

  1. Give a pair of source spec and target spec, it will give you a valid transform path with greedy algorithm.
  2. It will cached the transform path of all searched pairs, so most of time when you apply the shape consistency transform, the transform has already cached in manager, it won't cost additional time to search the path again.
  3. It will give an apply function to implement the sharding spec to the tensor.

Note: The ShapeConsistencyManager class is just partially completed.

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.

None yet

2 participants