mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-07 12:01:39 +00:00
[DTensor] refactor sharding spec (#2987)
* [autoparallel] refactor sharding spec * rename function name
This commit is contained in:
14
colossalai/tensor/d_tensor/misc.py
Normal file
14
colossalai/tensor/d_tensor/misc.py
Normal file
@@ -0,0 +1,14 @@
|
||||
class LayoutException(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class DuplicatedShardingDimensionError(LayoutException):
|
||||
pass
|
||||
|
||||
|
||||
class ShardingNotDivisibleError(LayoutException):
|
||||
pass
|
||||
|
||||
|
||||
class ShardingOutOfIndexError(LayoutException):
|
||||
pass
|
Reference in New Issue
Block a user