MCPcopy Create free account
hub / github.com/Standard-Intelligence/hertz-dev / printonce

Function printonce

utils/dist.py:44–50  ·  view source on GitHub ↗
(*args, id=None, **kwargs)

Source from the content-addressed store, hash-verified

42_PRINTED_IDS = set()
43
44def printonce(*args, id=None, **kwargs):
45 if id is None:
46 id = ' '.join(map(str, args))
47
48 if id not in _PRINTED_IDS:
49 print(*args, **kwargs)
50 _PRINTED_IDS.add(id)
51
52def print0once(*args, **kwargs):
53 if rank0():

Callers 1

print0onceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected