mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-06 11:32:10 +00:00
[ColoTensor] rename APIs and add output_replicate to ComputeSpec (#1168)
This commit is contained in:
@@ -82,7 +82,7 @@ class ColoParameter(ColoTensor, torch.nn.Parameter):
|
||||
else:
|
||||
with torch._C.DisableTorchFunction():
|
||||
data = self.data.clone()
|
||||
tensor = ColoParameter(data, self.requires_grad, spec=copy(self.spec))
|
||||
tensor = ColoParameter(data, self.requires_grad, spec=copy(self.tensor_spec))
|
||||
memo[id(self)] = tensor
|
||||
return tensor
|
||||
|
||||
|
Reference in New Issue
Block a user