| 93 | } |
| 94 | )"; |
| 95 | void puzzle3(Context &ctx) { |
| 96 | printf("\n\nPuzzle 3\n\n"); |
| 97 | static constexpr size_t N = 8; |
| 98 | Tensor input = createTensor(ctx, {N/2}, kf32, makeData<N>().data()); |
| 99 | Tensor output = createTensor(ctx, {N/2}, kf32); |
| 100 | Kernel op = |
| 101 | createKernel(ctx, {kPuzzle3, N}, Bindings{input, output}, {1, 1, 1}); |
| 102 | showResult<N>(ctx, op, output); |
| 103 | } |
| 104 | |
| 105 | // Puzzle 4 : Map 2D |
| 106 | // Implement a kernel that adds 10 to each position of a and stores it in out. |
nothing calls this directly
no test coverage detected