[Gemini] GeminiDPP convert to PyTorch Module. (#2151)

This commit is contained in:
Jiarui Fang
2022-12-20 10:19:36 +08:00
committed by GitHub
parent bdef9dfdbe
commit 2827f41898
3 changed files with 76 additions and 1 deletions

View File

@@ -103,7 +103,6 @@ class ColoTensor(torch.Tensor):
self.process_group = spec.pg
self._type = TensorType.NONMODEL
self._graph_node = None
def has_compute_spec(self) -> bool:
return self.compute_spec is not None