mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-07-31 15:25:21 +00:00
mark sanity_check of dist_spec_mgr as staticmethod (#1161)
This commit is contained in:
parent
955ac912de
commit
634eecb98e
@ -43,6 +43,7 @@ class DistSpecManager:
|
|||||||
|
|
||||||
_use_autograd_function: bool = True
|
_use_autograd_function: bool = True
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
def _sanity_check(old_dist_spec: _DistSpec, dist_spec: _DistSpec) -> None:
|
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 \
|
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:
|
and dist_spec.process_group is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user