| 65 | return core::wrap_tensor(ggml_scale(ctx.ggml, prefix_contiguous.tensor, 0.0f), prefix.shape, GGML_TYPE_F32); |
| 66 | } |
| 67 | |
| 68 | core::TensorValue repeat_first_frame( |
| 69 | core::ModuleBuildContext & ctx, |
| 70 | const core::TensorValue & input, |
| 71 | int64_t prefix_frames) { |
| 72 | auto first = SliceModule({2, 0, 1}).build(ctx, input); |
| 73 | return RepeatModule({core::TensorShape::from_dims({input.shape.dims[0], input.shape.dims[1], prefix_frames})}).build(ctx, first); |
| 74 | } |
| 75 | |
| 76 | } |
no test coverage detected