mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-06 19:40:28 +00:00
[tensor] refactor parallel action (#1007)
* refactor parallel action * polish unit tests
This commit is contained in:
@@ -33,3 +33,6 @@ class ColoParameter(ColoTensor):
|
||||
tensor = tensor.as_subclass(ColoParameter)
|
||||
tensor.__init__(tensor, requires_grad=requires_grad, spec=spec)
|
||||
return tensor
|
||||
|
||||
def __repr__(self):
|
||||
return f'ColoParameter: {torch.Tensor.__repr__(self)}'
|
||||
|
Reference in New Issue
Block a user