mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-06 19:40:28 +00:00
[tensor] add zero_like colo op, important for Optimizer (#1236)
This commit is contained in:
@@ -55,7 +55,7 @@ class ColoParameter(ColoTensor, torch.nn.Parameter):
|
||||
return tensor
|
||||
|
||||
def __repr__(self):
|
||||
return f'ColoParameter: {torch.Tensor.__repr__(self)}'
|
||||
return f'ColoParameter: {ColoTensor.__repr__(self)}'
|
||||
|
||||
@classmethod
|
||||
def __torch_function__(cls, func, types, args=..., kwargs=None):
|
||||
|
Reference in New Issue
Block a user