| 115 | }; |
| 116 | |
| 117 | const core::ModuleSchema kConvTranspose1dSchema = { |
| 118 | "ConvTranspose1d", |
| 119 | "nn.conv", |
| 120 | kConvInputs, |
| 121 | 3, |
| 122 | kSingleOutput, |
| 123 | 1, |
| 124 | "Applies a 1D transposed convolution to channel-first inputs [batch, channels, frames].", |
| 125 | }; |
| 126 | |
| 127 | core::TensorValue ensure_f32( |
| 128 | core::ModuleBuildContext & ctx, |
| 129 | const core::TensorValue & value) { |
| 130 | if (value.type == GGML_TYPE_F32) { |
| 131 | return value; |
| 132 | } |
| 133 | return core::wrap_tensor(ggml_cast(ctx.ggml, value.tensor, GGML_TYPE_F32), value.shape, GGML_TYPE_F32); |
| 134 | } |
no test coverage detected