mark sanity_check of dist_spec_mgr as staticmethod (#1161)

This commit is contained in:
ver217
2022-06-23 11:35:25 +08:00
committed by GitHub
parent 955ac912de
commit 634eecb98e

View File

@@ -43,6 +43,7 @@ class DistSpecManager:
_use_autograd_function: bool = True
@staticmethod
def _sanity_check(old_dist_spec: _DistSpec, dist_spec: _DistSpec) -> None:
if old_dist_spec.process_group is not None and old_dist_spec.process_group != dist_spec.process_group \
and dist_spec.process_group is not None: