Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ml-explore/mlx
/ zeros_fun
Method
zeros_fun
python/tests/test_compile.py:489–490 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
487
x = mx.zeros((x_shape))
488
489
def
zeros_fun(x):
490
return
mx.zeros_like(x)
491
492
def
ones_fun(x):
493
return
mx.ones_like(x)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected