Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
26
def
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
33
def
eval_fn(model, inp, tgt):
Callers
2
train_epoch
Function · 0.70
main
Function · 0.70
Calls
1
rank
Method · 0.45
Tested by
no test coverage detected