| 603 | const HeartCodecResidualUnitWeights & weights, |
| 604 | int64_t channels, |
| 605 | int64_t kernel_size, |
| 606 | int64_t dilation) { |
| 607 | auto x = causal_conv1d(ctx, input, weights.conv1, channels, channels, kernel_size, dilation); |
| 608 | x = prelu(ctx, x, weights.activation1); |
| 609 | x = causal_conv1d(ctx, x, weights.conv2, channels, channels, 1); |
| 610 | x = prelu(ctx, x, weights.activation2); |
| 611 | return modules::AddModule{}.build(ctx, input, x); |
| 612 | } |
| 613 | |
| 614 | core::TensorValue scalar_decoder( |
| 615 | core::ModuleBuildContext & ctx, |
| 616 | const core::TensorValue & latents, |
| 617 | const HeartCodecScalarDecoderWeights & weights, |
| 618 | const HeartCodecConfig & config) { |
no test coverage detected