| 69 | } |
| 70 | |
| 71 | core::TensorValue scale_tensor( |
| 72 | core::ModuleBuildContext & ctx, |
| 73 | const core::TensorValue & input, |
| 74 | float scale) { |
| 75 | return core::wrap_tensor(ggml_scale(ctx.ggml, input.tensor, scale), input.shape, GGML_TYPE_F32); |
| 76 | } |
| 77 | |
| 78 | core::TensorValue apply_adaln( |
| 79 | core::ModuleBuildContext & ctx, |
no test coverage detected