| 159 | } |
| 160 | |
| 161 | core::TensorValue repeat_like( |
| 162 | core::ModuleBuildContext & ctx, |
| 163 | const core::TensorValue & value, |
| 164 | const core::TensorValue & like, |
| 165 | const core::TensorShape & broadcast_shape) { |
| 166 | const auto reshaped = core::reshape_tensor(ctx, value, broadcast_shape); |
| 167 | return core::wrap_tensor(ggml_repeat(ctx.ggml, reshaped.tensor, like.tensor), like.shape, GGML_TYPE_F32); |
| 168 | } |
| 169 | |
| 170 | core::TensorValue apply_gamma( |
| 171 | core::ModuleBuildContext & ctx, |
no test coverage detected