MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / get_random_dims

Function get_random_dims

tests/test-grad0.cpp:59–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59static void get_random_dims(int64_t * dims, int ndims) {
60 dims[0] = dims[1] = dims[2] = dims[3] = 1;
61
62 for (int i = 0; i < ndims; i++) {
63 dims[i] = 1 + irand(4);
64 }
65}
66
67static struct ggml_tensor * get_random_tensor_f32(
68 struct ggml_context * ctx0,

Callers 1

mainFunction · 0.70

Calls 1

irandFunction · 0.70

Tested by

no test coverage detected