| 278 | } |
| 279 | |
| 280 | engine::core::TensorValue add_tensor_values( |
| 281 | engine::core::ModuleBuildContext & ctx, |
| 282 | const engine::core::TensorValue & lhs, |
| 283 | const engine::core::TensorValue & rhs) { |
| 284 | auto lhs_contiguous = contiguous(ctx, lhs); |
| 285 | auto rhs_contiguous = contiguous(ctx, rhs); |
| 286 | return engine::core::wrap_tensor( |
| 287 | ggml_add(ctx.ggml, lhs_contiguous.tensor, rhs_contiguous.tensor), |
| 288 | lhs.shape, |
| 289 | GGML_TYPE_F32); |
| 290 | } |
| 291 | |
| 292 | engine::core::TensorValue mul_tensor_values( |
| 293 | engine::core::ModuleBuildContext & ctx, |
no test coverage detected