Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ml-explore/mlx
/ seed
Method
seed
python/src/random.cpp:32–34 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
30
}
31
32
void seed(uint64_t seed) {
33
state()[0] = mx::random::key(seed);
34
}
35
36
mx::array next() {
37
auto out = mx::random::split(nb::cast<mx::array>(state()[0]));
Callers
15
init_random
Function · 0.45
run_conv1D
Method · 0.45
run_conv1D_grad
Method · 0.45
run_conv2D
Method · 0.45
run_conv2D_grad
Method · 0.45
run_conv3D
Method · 0.45
run_conv3D_grad
Method · 0.45
__conv_general_test
Method · 0.45
test_conv_groups_grad
Method · 0.45
test_lapack
Method · 0.45
test_adamw_matches_pytorch
Method · 0.45
test_rope_with_freqs
Method · 0.45
Calls
1
key
Function · 0.85
Tested by
15
run_conv1D
Method · 0.36
run_conv1D_grad
Method · 0.36
run_conv2D
Method · 0.36
run_conv2D_grad
Method · 0.36
run_conv3D
Method · 0.36
run_conv3D_grad
Method · 0.36
__conv_general_test
Method · 0.36
test_conv_groups_grad
Method · 0.36
test_lapack
Method · 0.36
test_adamw_matches_pytorch
Method · 0.36
test_rope_with_freqs
Method · 0.36
test_custom_kernel_basic
Method · 0.36