[autoparallel] resnet block runtime apply (#1709)

* [autoparallel] resnet block runtime apply

* seperate buffer and parameter in MemoryCost

* polish code

* add comments and todos

* fix test issue
This commit is contained in:
YuliangLiu0306
2022-10-17 13:37:38 +08:00
committed by GitHub
parent b0a23dc4fc
commit 845ff4a47a
11 changed files with 277 additions and 27 deletions

View File

@@ -20,7 +20,8 @@ class OperationDataType(Enum):
INPUT = 0
ARG = 1
PARAM = 2
OUTPUT = 3
BUFFER = 3
OUTPUT = 4
@dataclass
@@ -80,6 +81,7 @@ class MemoryCost:
"""
activation: int = 0
parameter: int = 0
buffer: int = 0
@dataclass