[DTensor] refactor sharding spec (#2987)

* [autoparallel] refactor sharding spec

* rename function name
This commit is contained in:
YuliangLiu0306
2023-03-07 11:08:11 +08:00
committed by GitHub
parent 400f63012e
commit cd2b0eaa8d
6 changed files with 341 additions and 7 deletions

View File

@@ -0,0 +1,14 @@
class LayoutException(Exception):
pass
class DuplicatedShardingDimensionError(LayoutException):
pass
class ShardingNotDivisibleError(LayoutException):
pass
class ShardingOutOfIndexError(LayoutException):
pass