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

Function time_random_generation

benchmarks/cpp/single_ops.cpp:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void time_random_generation() {
46 int M = 2000;
47 int N = 500;
48
49 auto uniform = [&]() { return mx::random::uniform({M, N}, mx::float32); };
50 TIME(uniform);
51 auto normal = [&]() { return mx::random::normal({M, N}, mx::float32); };
52 TIME(normal);
53}
54
55void time_unary_ops() {
56 int M = 2000;

Callers 1

mainFunction · 0.85

Calls 2

uniformFunction · 0.50
normalFunction · 0.50

Tested by

no test coverage detected