Unverified Commit 7aadcbd0 authored by ver217's avatar ver217 Committed by GitHub
Browse files

hotfix colotensor _scan_for_pg_from_args (#1276)

parent 0cf8e8e9
......@@ -40,7 +40,7 @@ def _scan_for_pg_from_args(args, kwargs) -> ProcessGroup:
pg = _scan_for_pg_from_args(elem, {})
if pg is not None:
return pg
for k, v in kwargs:
for k, v in kwargs.items():
if isinstance(v, ColoTensor):
pg = v.get_process_group()
return pg
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment