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

Function makeData

examples/gpu_puzzles/run.cpp:16–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14static constexpr size_t N = 10;
15
16template <size_t N> std::array<float, N> makeData() {
17 std::array<float, N> inputArr;
18 for (int i = 0; i < N; ++i) {
19 inputArr[i] = static_cast<float>(i); // dummy input data
20 }
21 return inputArr;
22}
23
24template <size_t N, size_t R = N, size_t C = 1> void showResult(Context &ctx, Kernel &op, Tensor &output) {
25

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected