| 3869 | // ggml_diag_mask_inf |
| 3870 | |
| 3871 | static struct ggml_tensor * ggml_diag_mask_inf_impl( |
| 3872 | struct ggml_context * ctx, |
| 3873 | struct ggml_tensor * a, |
| 3874 | int n_past, |
| 3875 | bool inplace) { |
| 3876 | struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a); |
| 3877 | |
| 3878 | int32_t params[] = { n_past }; |
| 3879 | ggml_set_op_params(result, params, sizeof(params)); |
| 3880 | |
| 3881 | result->op = GGML_OP_DIAG_MASK_INF; |
| 3882 | result->src[0] = a; |
| 3883 | |
| 3884 | return result; |
| 3885 | } |
| 3886 | |
| 3887 | struct ggml_tensor * ggml_diag_mask_inf( |
| 3888 | struct ggml_context * ctx, |
no test coverage detected