| 2554 | } |
| 2555 | |
| 2556 | struct ggml_tensor * ggml_new_tensor_4d( |
| 2557 | struct ggml_context * ctx, |
| 2558 | enum ggml_type type, |
| 2559 | int64_t ne0, |
| 2560 | int64_t ne1, |
| 2561 | int64_t ne2, |
| 2562 | int64_t ne3) { |
| 2563 | const int64_t ne[4] = { ne0, ne1, ne2, ne3 }; |
| 2564 | return ggml_new_tensor(ctx, type, 4, ne); |
| 2565 | } |
| 2566 | |
| 2567 | struct ggml_tensor * ggml_new_i32(struct ggml_context * ctx, int32_t value) { |
| 2568 | ggml_scratch_save(ctx); |
no test coverage detected