| 2565 | } |
| 2566 | |
| 2567 | struct ggml_tensor * ggml_new_i32(struct ggml_context * ctx, int32_t value) { |
| 2568 | ggml_scratch_save(ctx); |
| 2569 | |
| 2570 | struct ggml_tensor * result = ggml_new_tensor_1d(ctx, GGML_TYPE_I32, 1); |
| 2571 | |
| 2572 | ggml_scratch_load(ctx); |
| 2573 | |
| 2574 | ggml_set_i32(result, value); |
| 2575 | |
| 2576 | return result; |
| 2577 | } |
| 2578 | |
| 2579 | struct ggml_tensor * ggml_new_f32(struct ggml_context * ctx, float value) { |
| 2580 | ggml_scratch_save(ctx); |
nothing calls this directly
no test coverage detected