[autoparallel] introduced baseclass for op handler and reduced code redundancy (#1471)

* [autoparallel] introduced baseclass for op handler and reduced code redundancy

* polish code
This commit is contained in:
Frank Lee
2022-08-19 16:51:38 +08:00
committed by GitHub
parent 3a54e1c9b7
commit 9dae9bb2bc
3 changed files with 80 additions and 69 deletions

View File

@@ -0,0 +1,12 @@
from .operator_handler import OperatorHanlder
class DotHandler(OperatorHanlder):
"""
A OperatorHandler which deals with the sharding strategies of linear matrix multiplication.
"""
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
# TODO: refactor the dot handler in my local branch to align with the latest main branch