Skip to content

Commit

Permalink
Fix (#3974)
Browse files Browse the repository at this point in the history
  • Loading branch information
co63oc authored Jan 17, 2025
1 parent e02a522 commit a196c05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit/tts/test_pwg.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
import paddle
import torch
from paddle.device.cuda import synchronize
from parallel_wavegan import models as pwgan
from parallel_wavegan.layers import residual_block
from parallel_wavegan.layers import upsample
from parallel_wavegan.models import parallel_wavegan as pwgan
from timer import timer

from paddlespeech.t2s.models.parallel_wavegan import ConvInUpsampleNet
from paddlespeech.t2s.models.parallel_wavegan import PWGDiscriminator
from paddlespeech.t2s.models.parallel_wavegan import PWGGenerator
from paddlespeech.t2s.models.parallel_wavegan import ResidualBlock
from paddlespeech.t2s.models.parallel_wavegan import ResidualPWGDiscriminator
from paddlespeech.t2s.modules.residual_block import WaveNetResidualBlock
from paddlespeech.t2s.utils.layer_tools import summary

paddle.set_device("gpu:0")
Expand Down Expand Up @@ -79,8 +79,8 @@ def test_convin_upsample_net():


def test_residual_block():
net = ResidualBlock(dilation=9)
net2 = residual_block.ResidualBlock(dilation=9)
net = WaveNetResidualBlock(dilation=9)
net2 = residual_block.WaveNetResidualBlock(dilation=9)
summary(net)
summary(net2)
for k, v in net2.named_parameters():
Expand Down

0 comments on commit a196c05

Please sign in to comment.