MCPcopy Create free account
hub / github.com/NVlabs/DiffusionNFT / is_main_process

Function is_main_process

scripts/evaluation.py:53–55  ·  view source on GitHub ↗

Checks if the current process is the main one (rank 0).

(rank)

Source from the content-addressed store, hash-verified

51
52
53def is_main_process(rank):
54 """Checks if the current process is the main one (rank 0)."""
55 return rank == 0
56
57
58class TextPromptDataset(Dataset):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected