From bb8704aa86dfc6f4c8cbc429cf333b0f50c0f5d1 Mon Sep 17 00:00:00 2001 From: drryanhuang Date: Wed, 18 Dec 2024 07:16:28 +0000 Subject: [PATCH] bias -> bias_attr --- paddlespeech/t2s/modules/fftconv1d.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/paddlespeech/t2s/modules/fftconv1d.py b/paddlespeech/t2s/modules/fftconv1d.py index ae5fc7e82..83877ffad 100644 --- a/paddlespeech/t2s/modules/fftconv1d.py +++ b/paddlespeech/t2s/modules/fftconv1d.py @@ -161,7 +161,7 @@ class FFTConv1D(paddle.nn.Layer): stride of convolution. padding (int): padding to apply to the _input. - bias (bool): + bias_attr (bool): if True, use a bias term. Examples: @@ -178,7 +178,7 @@ class FFTConv1D(paddle.nn.Layer): kernel_size: int, stride: int=1, padding: int=0, - bias: bool=True, ): + bias_attr: bool=True, ): super(FFTConv1D, self).__init__() self.in_channels = in_channels self.out_channels = out_channels @@ -193,9 +193,9 @@ class FFTConv1D(paddle.nn.Layer): kernel_size, stride=stride, padding=padding, - bias_attr=bias) + bias_attr=bias_attr) self.weight = conv.weight - if bias: + if bias_attr: self.bias = conv.bias else: self.bias = None