-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Hackathon 7th No.55] Add fft_conv1d
to PaddleSpeech
-part
#3947
Conversation
Thanks for your contribution! |
] | ||
|
||
|
||
def __unfold(_input, kernel_size: int, stride: int): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this api do?
|
||
|
||
# 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
paddle do not have .strides release api. Also for as_strided support >2.6, but can be combined with view
and reshape
.
# Paddle version 2.6 and above, so F.conv1d and Conv1D are used as replacements. | ||
version = paddle.__version__ | ||
|
||
if version < '2.6': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v2.6 and above cannot be used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
fft_conv1d
to PaddleSpeech
fft_conv1d
to PaddleSpeech
-part
PR types
New features
PR changes
APIs
Describe
fft_conv1d
is much faster thanconv1d
when kernel_size >= 128Implementation:
Performance:
Simple to implement and easy to debug.
Result:
audiotools
toPaddleSpeech
#3900