-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat: use pytorch built-in interpolation method for LinearInterpolation
#38
feat: use pytorch built-in interpolation method for LinearInterpolation
#38
Conversation
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.
Thank you for improving the code!
I added some minor comments. Could you apply the linter and formatter?
Co-authored-by: Takenori Yoshimura <takenori.yoshimura24@gmail.com>
Co-authored-by: Takenori Yoshimura <takenori.yoshimura24@gmail.com>
Co-authored-by: Takenori Yoshimura <takenori.yoshimura24@gmail.com>
Co-authored-by: Takenori Yoshimura <takenori.yoshimura24@gmail.com>
Co-authored-by: Takenori Yoshimura <takenori.yoshimura24@gmail.com>
Sure, will do this today. |
Thank you for your response. I will merge. |
Oh, did it pass the test? I can't see any workflow running... 😅 |
No worries. I intentionally skipped the CI because I have already performed the test on my machine. |
Nice! all good then. |
I was using the mlsa filter module and found some places that can be optimised.
I replaced the convolution-based linear interpolation with pytorch built-in method and did some benchmarks.
Before
After
The benchmark script
I only test the script on a Macbook with an M1 chip, but it should have similar results on other machines and OS.
TODO
I haven't run the test scripts yet due to some problems with building sptk.
If anyone can help run the tests, I would appreciate it.