mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-07 12:01:39 +00:00
[polish] polish ColoTensor and its submodules (#2537)
This commit is contained in:
@@ -71,7 +71,7 @@ class ColoParameter(ColoTensor, torch.nn.Parameter):
|
||||
return tensor
|
||||
|
||||
def __repr__(self):
|
||||
return f'ColoParameter: {ColoTensor.__repr__(self)}'
|
||||
return super(ColoParameter, self).__repr__()
|
||||
|
||||
@classmethod
|
||||
def __torch_function__(cls, func, types, args=..., kwargs=None):
|
||||
|
Reference in New Issue
Block a user