| 134 | } |
| 135 | |
| 136 | static ggml_tensor * make_input_1d(ggml_context * ctx, int64_t n_elements) { |
| 137 | ggml_tensor * t = ggml_new_tensor_1d(ctx, GGML_TYPE_F32, n_elements); |
| 138 | ggml_set_input(t); |
| 139 | return t; |
| 140 | } |
| 141 | |
| 142 | static ggml_tensor * make_input_with_size(ggml_context * ctx, size_t size_bytes) { |
| 143 | GGML_ASSERT(size_bytes % 4 == 0); |
no test coverage detected