mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-12-20 11:02:42 +00:00
[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:
12
colossalai/auto_parallel/solver/dot_handler.py
Normal file
12
colossalai/auto_parallel/solver/dot_handler.py
Normal 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
|
||||
Reference in New Issue
Block a user