From 2c424e3616c0ad857d3e7e887677d87a8e3fe1b4 Mon Sep 17 00:00:00 2001 From: drryanhuang Date: Wed, 18 Dec 2024 03:10:06 +0000 Subject: [PATCH] add comment --- paddlespeech/t2s/modules/fftconv1d.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/paddlespeech/t2s/modules/fftconv1d.py b/paddlespeech/t2s/modules/fftconv1d.py index 55994bc24..ae5fc7e82 100644 --- a/paddlespeech/t2s/modules/fftconv1d.py +++ b/paddlespeech/t2s/modules/fftconv1d.py @@ -205,6 +205,9 @@ class FFTConv1D(paddle.nn.Layer): self.padding) +# Currently, the API unfold in Paddle is extremely slow, so __unfold is implemented +# using the `.strides` and `.as_strided` APIs. However, these are only supported in +# Paddle version 2.6 and above, so F.conv1d and Conv1D are used as replacements. version = paddle.__version__ if version < '2.6':