| 70 | } |
| 71 | |
| 72 | core::TensorValue ensure_f32(core::ModuleBuildContext & ctx, const core::TensorValue & value) { |
| 73 | if (value.type == GGML_TYPE_F32) { |
| 74 | return value; |
| 75 | } |
| 76 | return core::wrap_tensor(ggml_cast(ctx.ggml, value.tensor, GGML_TYPE_F32), value.shape, GGML_TYPE_F32); |
| 77 | } |
| 78 | |
| 79 | core::TensorValue ensure_contiguous_nontransposed( |
| 80 | core::ModuleBuildContext & ctx, |
no test coverage detected