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

[autoparallel] added new node handler #1612

Merged

Conversation

FrankLeeeee
Copy link
Contributor

@FrankLeeeee FrankLeeeee commented Sep 20, 2022

A new NodeHandler is implemented to replace the original OperatorHandler. This new NodeHandler has several improvements over the OperatorHandler.

  1. It defines the mapping between the logical operand and the actual tensor via the get_operand_mapping method. This unifies the way of writing handles for function/module nodes.
  2. It has an additional abstraction of StrategyGenerator, which allows clear grouping and re-use of different sharding strategies.
  3. It has a consistent template for register_strategy to avoid code redundancy.

@FrankLeeeee FrankLeeeee force-pushed the feature/refactor-node-handler branch 2 times, most recently from ba2960a to 2b3e61d Compare September 20, 2022 05:56
@YuliangLiu0306 YuliangLiu0306 merged commit d397842 into hpcaitech:main Sep 20, 2022
@FrankLeeeee FrankLeeeee deleted the feature/refactor-node-handler branch January 26, 2023 07:46
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