MCPcopy Create free account
hub / github.com/ml-explore/mlx-examples / print_zero

Function print_zero

cifar/main.py:26–30  ·  view source on GitHub ↗
(group, *args, **kwargs)

Source from the content-addressed store, hash-verified

24
25
26def print_zero(group, *args, **kwargs):
27 if group.rank() != 0:
28 return
29 flush = kwargs.pop("flush", True)
30 print(*args, **kwargs, flush=flush)
31
32
33def eval_fn(model, inp, tgt):

Callers 2

train_epochFunction · 0.70
mainFunction · 0.70

Calls 1

rankMethod · 0.45

Tested by

no test coverage detected