mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-03 01:55:12 +00:00
[autoparallel] align the data_ptr with the old version of auto activation checkpoint pipeline (#2261)
This commit is contained in:
@@ -5,8 +5,11 @@ import torch.nn as nn
|
||||
|
||||
from ..tensor_shard.constants import *
|
||||
|
||||
# list of inplace operations
|
||||
# list of inplace module
|
||||
INPLACE_MODULE = [nn.ReLU]
|
||||
|
||||
# list of inplace operations
|
||||
INPLACE_OPS = [torch.flatten]
|
||||
|
||||
# list of operations that do not save forward activations
|
||||
NO_SAVE_ACTIVATION = [torch.add, torch.sub, operator.add, operator.sub]
|
||||
|
Reference in New Issue
Block a user