From 47d78b87393d7eef3942227d9bc4cafc6da531eb Mon Sep 17 00:00:00 2001 From: lifuchen Date: Thu, 20 Feb 2020 02:17:25 +0000 Subject: [PATCH] remove utils.py to models/transdformer_tts --- examples/transformer_tts/train_transformer.py | 2 +- parakeet/models/fastspeech/decoder.py | 2 +- parakeet/models/fastspeech/encoder.py | 2 +- parakeet/models/transformer_tts/encoder.py | 2 +- parakeet/{modules => models/transformer_tts}/utils.py | 0 parakeet/models/transformer_tts/vocoder.py | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename parakeet/{modules => models/transformer_tts}/utils.py (100%) diff --git a/examples/transformer_tts/train_transformer.py b/examples/transformer_tts/train_transformer.py index 02284f7..cbca569 100644 --- a/examples/transformer_tts/train_transformer.py +++ b/examples/transformer_tts/train_transformer.py @@ -12,7 +12,7 @@ import numpy as np import paddle.fluid as fluid import paddle.fluid.dygraph as dg import paddle.fluid.layers as layers -from parakeet.modules.utils import cross_entropy +from parakeet.models.transformer_tts.utils import cross_entropy from data import LJSpeechLoader from parakeet.models.transformer_tts.transformer_tts import TransformerTTS diff --git a/parakeet/models/fastspeech/decoder.py b/parakeet/models/fastspeech/decoder.py index 363268f..732fed4 100644 --- a/parakeet/models/fastspeech/decoder.py +++ b/parakeet/models/fastspeech/decoder.py @@ -1,6 +1,6 @@ import paddle.fluid.dygraph as dg import paddle.fluid as fluid -from parakeet.modules.utils import * +from parakeet.models.transformer_tts.utils import * from parakeet.models.fastspeech.fft_block import FFTBlock class Decoder(dg.Layer): diff --git a/parakeet/models/fastspeech/encoder.py b/parakeet/models/fastspeech/encoder.py index 028cf78..ac96e39 100644 --- a/parakeet/models/fastspeech/encoder.py +++ b/parakeet/models/fastspeech/encoder.py @@ -1,6 +1,6 @@ import paddle.fluid.dygraph as dg import paddle.fluid as fluid -from parakeet.modules.utils import * +from parakeet.models.transformer_tts.utils import * from parakeet.models.fastspeech.fft_block import FFTBlock class Encoder(dg.Layer): diff --git a/parakeet/models/transformer_tts/encoder.py b/parakeet/models/transformer_tts/encoder.py index 1ce5fb9..8cd37b2 100644 --- a/parakeet/models/transformer_tts/encoder.py +++ b/parakeet/models/transformer_tts/encoder.py @@ -1,6 +1,6 @@ import paddle.fluid.dygraph as dg import paddle.fluid as fluid -from parakeet.modules.utils import * +from parakeet.models.transformer_tts.utils import * from parakeet.modules.multihead_attention import MultiheadAttention from parakeet.modules.ffn import PositionwiseFeedForward from parakeet.models.transformer_tts.encoderprenet import EncoderPrenet diff --git a/parakeet/modules/utils.py b/parakeet/models/transformer_tts/utils.py similarity index 100% rename from parakeet/modules/utils.py rename to parakeet/models/transformer_tts/utils.py diff --git a/parakeet/models/transformer_tts/vocoder.py b/parakeet/models/transformer_tts/vocoder.py index 0a3f14a..3fa19a6 100644 --- a/parakeet/models/transformer_tts/vocoder.py +++ b/parakeet/models/transformer_tts/vocoder.py @@ -1,7 +1,7 @@ import paddle.fluid.dygraph as dg import paddle.fluid as fluid from parakeet.modules.customized import Conv1D -from parakeet.modules.utils import * +from parakeet.models.transformer_tts.utils import * from parakeet.models.transformer_tts.cbhg import CBHG class Vocoder(dg.Layer):