| 55 | } |
| 56 | |
| 57 | core::TensorValue ensure_f32(core::ModuleBuildContext & ctx, const core::TensorValue & input) { |
| 58 | if (input.type == GGML_TYPE_F32) { |
| 59 | return input; |
| 60 | } |
| 61 | return core::wrap_tensor(ggml_cast(ctx.ggml, input.tensor, GGML_TYPE_F32), input.shape, GGML_TYPE_F32); |
| 62 | } |
| 63 | |
| 64 | core::TensorValue reshape_heads( |
| 65 | core::ModuleBuildContext & ctx, |
no test coverage detected