MCPcopy Create free account
hub / github.com/AnswerDotAI/gpu.cpp / initData

Function initData

examples/transpose/run.cpp:105–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105void initData(size_t M, size_t N, std::unique_ptr<float[]> &inputPtr) {
106 std::mt19937 gen(314159);
107 randn(inputPtr.get(), M * N, gen);
108 LOG(kDefLog, kInfo, "%s", show<float>(inputPtr.get(), M, N, "Input").c_str());
109}
110
111Kernel selectTranspose(Context &ctx, int version,
112 const Bindings</* input, output */ 2> &bindings,

Callers 1

mainFunction · 0.70

Calls 2

randnFunction · 0.85
LOGFunction · 0.85

Tested by

no test coverage detected