| 141 | } |
| 142 | |
| 143 | core::TensorValue ensure_contiguous(core::ModuleBuildContext & ctx, const core::TensorValue & input) { |
| 144 | return core::ensure_backend_addressable_layout(ctx, input); |
| 145 | } |
| 146 | |
| 147 | core::TensorValue scale_tensor(core::ModuleBuildContext & ctx, const core::TensorValue & input, float scale) { |
| 148 | return core::wrap_tensor(ggml_scale(ctx.ggml, ensure_contiguous(ctx, input).tensor, scale), input.shape, GGML_TYPE_F32); |
no test coverage detected