mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-05 11:02:05 +00:00
[autoparallel] Add pofo sequence annotation (#1637)
* [autoparallel] annotate pofo sequence * [autoparallel] remove unused print * [autoparallel] fix some code
This commit is contained in:
@@ -54,7 +54,8 @@ class Offload(Operation):
|
||||
super().__init__()
|
||||
self.index = index
|
||||
self.name = "Off"
|
||||
if has_bar:
|
||||
self.has_bar = has_bar
|
||||
if self.has_bar:
|
||||
self.name += "wBar"
|
||||
|
||||
def __repr__(self):
|
||||
@@ -67,7 +68,8 @@ class Prefetch(Operation):
|
||||
super().__init__()
|
||||
self.index = index
|
||||
self.name = "Pre"
|
||||
if has_bar:
|
||||
self.has_bar = has_bar
|
||||
if self.has_bar:
|
||||
self.name += "wBar"
|
||||
|
||||
def __repr__(self):
|
||||
|
Reference in New Issue
Block a user