mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-04 02:26:51 +00:00
[Tensor] remove ParallelAction, use ComputeSpec instread (#1166)
This commit is contained in:
@@ -66,7 +66,7 @@ class ColoTensor(torch.Tensor):
|
||||
self._tensor_spec = spec
|
||||
|
||||
def has_spec(self) -> bool:
|
||||
return self._tensor_spec.parallel_action is not None
|
||||
return self._tensor_spec.compute_spec is not None
|
||||
|
||||
def is_model_data(self) -> bool:
|
||||
return self._type == TensorType.MODEL
|
||||
|
Reference in New Issue
Block a user