mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-27 04:33:04 +00:00
[autoparallel] add torch.nn.ReLU metainfo (#1868)
* [fx] metainfo class for auto parallel * [fx] add unit test for linear metainfo * [fx] fix bwd param for linear * [fx] modify unit test * [fx] modify unit test * [fx] modify import * [fx] modify import * [fx] modify import * [fx] move meta profiler to auto parallel * [fx] add conv metainfo class * [fx] restore profiler * [fx] restore meta profiler * [autoparallel] modify unit test * [fx] modify unit test * [autoparallel] add batchnorm metainfo class * [autoparallel] fix batchnorm unit test function declaration * [fx] restore profiler * [fx] add relu metainfo class * [fx] restore profiler * [autoparallel] modify metainfo input
This commit is contained in:
@@ -22,7 +22,7 @@ __all__ = ['batchnormnd_meta_info']
|
||||
@meta_register.register(torch.nn.BatchNorm1d)
|
||||
@meta_register.register(torch.nn.BatchNorm2d)
|
||||
@meta_register.register(torch.nn.BatchNorm3d)
|
||||
def batchnormnd_meta_info(*args) -> Tuple[TrainCycleItem, TrainCycleItem, List[torch.Tensor]]:
|
||||
def batchnormnd_meta_info(*args, **kwargs) -> Tuple[TrainCycleItem, TrainCycleItem, List[torch.Tensor]]:
|
||||
"""BatchNorm1d, BatchNorm2d, BatchNorm3d, meta info generator
|
||||
The aten graph of BatchNorm2d is like
|
||||
|
||||
|
Reference in New Issue
Block a user