| 3020 | // ggml_norm |
| 3021 | |
| 3022 | static struct ggml_tensor * ggml_norm_impl( |
| 3023 | struct ggml_context * ctx, |
| 3024 | struct ggml_tensor * a, |
| 3025 | float eps, |
| 3026 | bool inplace) { |
| 3027 | struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a); |
| 3028 | |
| 3029 | ggml_set_op_params(result, &eps, sizeof(eps)); |
| 3030 | |
| 3031 | result->op = GGML_OP_NORM; |
| 3032 | result->src[0] = a; |
| 3033 | |
| 3034 | return result; |
| 3035 | } |
| 3036 | |
| 3037 | struct ggml_tensor * ggml_norm( |
| 3038 | struct ggml_context * ctx, |
no test coverage detected