Spaces:
Runtime error
Runtime error
| import torch.nn as nn | |
| class Generator(nn.Module): | |
| def __init__( | |
| self, | |
| upsample_rates, | |
| upsample_initial_channel, | |
| resblock_kernel_sizes, | |
| resblock_dilation_sizes, | |
| resblock, | |
| upsample_kernel_sizes, | |
| inter_channels, | |
| out_channels, | |
| sampling_rate | |
| ): | |
| super().__init__() | |
| self.dummy = nn.Identity() # 実装は後で拡張可 | |
| def forward(self, x): | |
| return self.dummy(x) | |