Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/InternRobotics/G2VLM
/ rank0_print
Function
rank0_print
train/fsdp_utils.py:575–580 ·
view source on GitHub ↗
(*args)
Source
from the content-addressed store, hash-verified
573
574
575
def
rank0_print(*args):
576
if
dist.is_initialized():
577
if
dist.get_rank() == 0:
578
print(f
"Rank {dist.get_rank()}: "
, *args)
579
else
:
580
print(*args)
Callers
2
main
Function · 0.90
main
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected